File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
namespace MongoDB \Tests \GridFS ;
4
4
5
5
use MongoDB \Collection ;
6
- use MongoDB \Driver \Command ;
7
6
use MongoDB \GridFS \Bucket ;
7
+ use MongoDB \Operation \DropCollection ;
8
8
use MongoDB \Tests \FunctionalTestCase as BaseFunctionalTestCase ;
9
9
10
10
use function fopen ;
@@ -53,8 +53,9 @@ public function tearDown(): void
53
53
public static function dropCollectionsBeforeAfterClass (): void
54
54
{
55
55
$ manager = static ::createTestManager ();
56
- $ manager ->executeCommand (self ::getDatabaseName (), new Command (['drop ' => 'fs.chunks ' ]));
57
- $ manager ->executeCommand (self ::getDatabaseName (), new Command (['drop ' => 'fs.files ' ]));
56
+
57
+ (new DropCollection (self ::getDatabaseName (), 'fs.chunks ' ))->execute ($ manager ->selectServer ());
58
+ (new DropCollection (self ::getDatabaseName (), 'fs.files ' ))->execute ($ manager ->selectServer ());
58
59
}
59
60
60
61
/**
You can’t perform that action at this time.
0 commit comments