Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
268c3be3
Commit
268c3be3
authored
May 03, 2015
by
Jens Segers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for #471
parent
d1883777
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
RelationsTest.php
tests/RelationsTest.php
+3
-0
database.php
tests/config/database.php
+2
-2
No files found.
tests/RelationsTest.php
View file @
268c3be3
...
@@ -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
()
...
...
tests/config/database.php
View file @
268c3be3
...
@@ -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'
=>
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment