Commit f9a7d342 authored by duxet's avatar duxet

Fix to previous commit

parent 9dad7666
...@@ -525,7 +525,7 @@ class RelationsTest extends PHPUnit_Framework_TestCase { ...@@ -525,7 +525,7 @@ class RelationsTest extends PHPUnit_Framework_TestCase {
$user->addresses()->save($address); $user->addresses()->save($address);
$address->setEventDispatcher($events = Mockery::mock('Illuminate\Events\Dispatcher')); $address->setEventDispatcher($events = Mockery::mock('Illuminate\Events\Dispatcher'));
$events->shouldReceive('until')->once()->with('eloquent.deleting: '.get_class($address), $address)->andReturn(false); $events->shouldReceive('until')->once()->with('eloquent.deleting: '.get_class($address), Mockery::mustBe($address))->andReturn(false);
$this->assertEquals(0, $user->addresses()->destroy($address)); $this->assertEquals(0, $user->addresses()->destroy($address));
$this->assertEquals(array('New York'), $user->addresses->lists('city')); $this->assertEquals(array('New York'), $user->addresses->lists('city'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment