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
0dedbda2
Commit
0dedbda2
authored
Jan 12, 2015
by
duxet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary fix for QueryTest
parent
06b3ed39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
QueryTest.php
tests/QueryTest.php
+10
-5
No files found.
tests/QueryTest.php
View file @
0dedbda2
...
@@ -24,11 +24,6 @@ class QueryTest extends TestCase {
...
@@ -24,11 +24,6 @@ class QueryTest extends TestCase {
self
::
$started
=
true
;
self
::
$started
=
true
;
}
}
public
static
function
tearDownAfterClass
()
{
User
::
truncate
();
}
public
function
testWhere
()
public
function
testWhere
()
{
{
$users
=
User
::
where
(
'age'
,
35
)
->
get
();
$users
=
User
::
where
(
'age'
,
35
)
->
get
();
...
@@ -316,4 +311,14 @@ class QueryTest extends TestCase {
...
@@ -316,4 +311,14 @@ class QueryTest extends TestCase {
$this
->
assertNull
(
$results
->
first
()
->
title
);
$this
->
assertNull
(
$results
->
first
()
->
title
);
}
}
/*
* FIXME: This should be done in tearDownAfterClass, but something doens't work:
* https://travis-ci.org/duxet/laravel-mongodb/jobs/46657530
*/
public
function
testTruncate
()
{
User
::
truncate
();
$this
->
assertEquals
(
0
,
User
::
count
());
}
}
}
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