Commit 3bc51204 authored by Rezouce's avatar Rezouce

Add a test to make sure bug #736 do not happen again.

parent 37b371bc
...@@ -505,6 +505,12 @@ class EmbeddedRelationsTest extends TestCase ...@@ -505,6 +505,12 @@ class EmbeddedRelationsTest extends TestCase
$this->assertEquals('Mark Doe', $user->father->name); $this->assertEquals('Mark Doe', $user->father->name);
} }
public function testEmbedsOneNullAssociation()
{
$user = User::create();
$this->assertNull($user->father);
}
public function testEmbedsOneDelete() public function testEmbedsOneDelete()
{ {
$user = User::create(['name' => 'John Doe']); $user = User::create(['name' => 'John Doe']);
......
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