/** * */ public function tearDown() { $batchParts = []; foreach ($this->collectionNames as $collectionName) { $collection = new Collection($this->client); /** @var $responseObject HttpResponse */ $batchParts[] = $collection->drop($collectionName, ['isBatchPart' => true]); } $batch = new Batch($this->client); $batch->send($this->client, $batchParts); }
/** * */ public function tearDown() { $batchParts = []; foreach ($this->collectionNames as $collectionName) { $collection = new Collection($this->client); /** @var $responseObject HttpResponse */ $batchParts[] = $collection->drop($collectionName, ['isBatchPart' => true]); } $responseObject = Batch::send($this->client, $batchParts); static::assertEquals(200, $responseObject->status); }