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

Add test for #471

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