Commit 1767b0d8 authored by Jens Segers's avatar Jens Segers

Add test for #273

parent b61a3a23
...@@ -643,4 +643,11 @@ class EmbeddedRelationsTest extends TestCase { ...@@ -643,4 +643,11 @@ class EmbeddedRelationsTest extends TestCase {
$this->assertEquals(1, $user->addresses()->count()); $this->assertEquals(1, $user->addresses()->count());
} }
public function testSaveEmptyModel()
{
$user = User::create(array('name' => 'John Doe'));
$user->addresses()->save(new Address);
$this->assertNotNull($user->addresses);
}
} }
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