Skip to content

Commit 0dedbda

Browse files
committed
Temporary fix for QueryTest
1 parent 06b3ed3 commit 0dedbda

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tests/QueryTest.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ public function setUp()
2424
self::$started = true;
2525
}
2626

27-
public static function tearDownAfterClass()
28-
{
29-
User::truncate();
30-
}
31-
3227
public function testWhere()
3328
{
3429
$users = User::where('age', 35)->get();
@@ -316,4 +311,14 @@ public function testPaginate()
316311
$this->assertNull($results->first()->title);
317312
}
318313

314+
/*
315+
* FIXME: This should be done in tearDownAfterClass, but something doens't work:
316+
* https://travis-ci.org/duxet/laravel-mongodb/jobs/46657530
317+
*/
318+
public function testTruncate()
319+
{
320+
User::truncate();
321+
$this->assertEquals(0, User::count());
322+
}
323+
319324
}

0 commit comments

Comments
 (0)