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
7d2468b6
Commit
7d2468b6
authored
Oct 31, 2013
by
Jens Segers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding test for issue #62
parent
bc4ae52d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
phpunit.xml
phpunit.xml
+4
-0
ModelTest.php
tests/ModelTest.php
+5
-0
No files found.
phpunit.xml
View file @
7d2468b6
...
@@ -27,5 +27,9 @@
...
@@ -27,5 +27,9 @@
<directory>
tests/QueryBuilderTest.php
</directory>
<directory>
tests/QueryBuilderTest.php
</directory>
<directory>
tests/QueryTest.php
</directory>
<directory>
tests/QueryTest.php
</directory>
</testsuite>
</testsuite>
<testsuite
name=
"model"
>
<directory>
tests/ModelTest.php
</directory>
<directory>
tests/RelationsTest.php
</directory>
</testsuite>
</testsuites>
</testsuites>
</phpunit>
</phpunit>
tests/ModelTest.php
View file @
7d2468b6
...
@@ -63,6 +63,11 @@ class ModelTest extends PHPUnit_Framework_TestCase {
...
@@ -63,6 +63,11 @@ class ModelTest extends PHPUnit_Framework_TestCase {
$this
->
assertEquals
(
'John Doe'
,
$check
->
name
);
$this
->
assertEquals
(
'John Doe'
,
$check
->
name
);
$this
->
assertEquals
(
36
,
$check
->
age
);
$this
->
assertEquals
(
36
,
$check
->
age
);
$user
->
update
(
array
(
'age'
=>
20
));
$check
=
User
::
find
(
$user
->
_id
);
$this
->
assertEquals
(
20
,
$check
->
age
);
}
}
public
function
testDelete
()
public
function
testDelete
()
...
...
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