File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,19 @@ public function tearDown(): void
42
42
parent ::tearDown ();
43
43
}
44
44
45
- public static function tearDownAfterClass (): void
45
+ /**
46
+ * The bucket's collections are created by the first test that runs and
47
+ * kept for all subsequent tests. This is done to avoid creating the
48
+ * collections and their indexes for each test, which would be slow.
49
+ *
50
+ * @beforeClass
51
+ * @afterClass
52
+ */
53
+ public static function dropCollectionsBeforeAfterClass (): void
46
54
{
47
55
$ manager = static ::createTestManager ();
48
56
$ manager ->executeCommand (self ::getDatabaseName (), new Command (['drop ' => 'fs.chunks ' ]));
49
57
$ manager ->executeCommand (self ::getDatabaseName (), new Command (['drop ' => 'fs.files ' ]));
50
-
51
- parent ::tearDownAfterClass ();
52
58
}
53
59
54
60
/**
You can’t perform that action at this time.
0 commit comments