We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d188377 commit 268c3beCopy full SHA for 268c3be
tests/RelationsTest.php
@@ -50,6 +50,9 @@ public function testBelongsTo()
50
51
$owner = $item->user;
52
$this->assertEquals('John Doe', $owner->name);
53
+
54
+ $book = Book::create(['title' => 'A Clash of Kings']);
55
+ $this->assertEquals(null, $book->author);
56
}
57
58
public function testHasOne()
tests/config/database.php
@@ -7,13 +7,13 @@
7
'mongodb' => [
8
'name' => 'mongodb',
9
'driver' => 'mongodb',
10
- 'host' => 'localhost',
+ 'host' => '127.0.0.1',
11
'database' => 'unittest',
12
],
13
14
'mysql' => [
15
'driver' => 'mysql',
16
17
18
'username' => 'travis',
19
'password' => '',
0 commit comments