Commit 268c3be3 authored by Jens Segers's avatar Jens Segers

Add test for #471

parent d1883777
...@@ -50,6 +50,9 @@ class RelationsTest extends TestCase { ...@@ -50,6 +50,9 @@ class RelationsTest extends TestCase {
$owner = $item->user; $owner = $item->user;
$this->assertEquals('John Doe', $owner->name); $this->assertEquals('John Doe', $owner->name);
$book = Book::create(['title' => 'A Clash of Kings']);
$this->assertEquals(null, $book->author);
} }
public function testHasOne() public function testHasOne()
......
...@@ -7,13 +7,13 @@ return [ ...@@ -7,13 +7,13 @@ return [
'mongodb' => [ 'mongodb' => [
'name' => 'mongodb', 'name' => 'mongodb',
'driver' => 'mongodb', 'driver' => 'mongodb',
'host' => 'localhost', 'host' => '127.0.0.1',
'database' => 'unittest', 'database' => 'unittest',
], ],
'mysql' => [ 'mysql' => [
'driver' => 'mysql', 'driver' => 'mysql',
'host' => 'localhost', 'host' => '127.0.0.1',
'database' => 'unittest', 'database' => 'unittest',
'username' => 'travis', 'username' => 'travis',
'password' => '', 'password' => '',
......
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