We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a7d34 commit 21d973aCopy full SHA for 21d973a
tests/RelationsTest.php
@@ -521,8 +521,9 @@ public function testEmbedsManyUpdatingEventReturnsFalse()
521
public function testEmbedsManyDeletingEventReturnsFalse()
522
{
523
$user = User::create(array('name' => 'John Doe'));
524
- $address = new Address(array('city' => 'New York'));
525
- $user->addresses()->save($address);
+ $user->addresses()->save(new Address(array('city' => 'New York')));
+
526
+ $address = $user->addresses->first();
527
528
$address->setEventDispatcher($events = Mockery::mock('Illuminate\Events\Dispatcher'));
529
$events->shouldReceive('until')->once()->with('eloquent.deleting: '.get_class($address), Mockery::mustBe($address))->andReturn(false);
0 commit comments