Skip to content

Commit 1767b0d

Browse files
committed
Add test for #273
1 parent b61a3a2 commit 1767b0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/EmbeddedRelationsTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,4 +643,11 @@ public function testDoubleAssociate()
643643
$this->assertEquals(1, $user->addresses()->count());
644644
}
645645

646+
public function testSaveEmptyModel()
647+
{
648+
$user = User::create(array('name' => 'John Doe'));
649+
$user->addresses()->save(new Address);
650+
$this->assertNotNull($user->addresses);
651+
}
652+
646653
}

0 commit comments

Comments
 (0)