We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b3ed3 commit 0dedbdaCopy full SHA for 0dedbda
tests/QueryTest.php
@@ -24,11 +24,6 @@ public function setUp()
24
self::$started = true;
25
}
26
27
- public static function tearDownAfterClass()
28
- {
29
- User::truncate();
30
- }
31
-
32
public function testWhere()
33
{
34
$users = User::where('age', 35)->get();
@@ -316,4 +311,14 @@ public function testPaginate()
316
311
$this->assertNull($results->first()->title);
317
312
318
313
314
+ /*
315
+ * FIXME: This should be done in tearDownAfterClass, but something doens't work:
+ * https://travis-ci.org/duxet/laravel-mongodb/jobs/46657530
+ */
+ public function testTruncate()
319
+ {
320
+ User::truncate();
321
+ $this->assertEquals(0, User::count());
322
+ }
323
+
324
0 commit comments