public function setUp()
 {
     parent::setUp();
     $this->collection = new Collection($this->manager, $this->getDatabaseName(), $this->getCollectionName());
     $operation = new DropCollection($this->getDatabaseName(), $this->getCollectionName());
     $operation->execute($this->getPrimaryServer());
 }
 public function setUp()
 {
     parent::setUp();
     $this->bucket = new Bucket($this->manager, $this->getDatabaseName());
     $this->bucket->drop();
     $this->chunksCollection = new Collection($this->manager, $this->getDatabaseName(), 'fs.chunks');
     $this->filesCollection = new Collection($this->manager, $this->getDatabaseName(), 'fs.files');
 }
 public function setUp()
 {
     parent::setUp();
     foreach (['fs.files', 'fs.chunks'] as $collection) {
         $col = new Collection($this->manager, $this->getDatabaseName(), $collection);
         $col->drop();
     }
     $this->bucket = new \MongoDB\GridFS\Bucket($this->manager, $this->getDatabaseName());
     $this->collectionsWrapper = $this->bucket->getCollectionsWrapper();
 }
 public function setUp()
 {
     parent::setUp();
     $this->database = new Database($this->manager, $this->getDatabaseName());
     $this->database->drop();
 }
 public function setUp()
 {
     parent::setUp();
     $this->client = new Client($this->getUri());
     $this->client->dropDatabase($this->getDatabaseName());
 }
 public function setUp()
 {
     parent::setUp();
     $this->collection = new Collection($this->manager, $this->getNamespace());
     $this->dropCollectionIfItExists($this->collection);
 }