Skip to content

Commit 3bc5120

Browse files
committed
Add a test to make sure bug #736 do not happen again.
1 parent 37b371b commit 3bc5120

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/EmbeddedRelationsTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,12 @@ public function testEmbedsOneAssociate()
505505
$this->assertEquals('Mark Doe', $user->father->name);
506506
}
507507

508+
public function testEmbedsOneNullAssociation()
509+
{
510+
$user = User::create();
511+
$this->assertNull($user->father);
512+
}
513+
508514
public function testEmbedsOneDelete()
509515
{
510516
$user = User::create(['name' => 'John Doe']);

0 commit comments

Comments
 (0)