manager, $databaseName); } public function provideInvalidDatabaseValues() { return [ [null], [''], ]; } public function testToString() { $this->assertEquals($this->getDatabaseName(), (string) $this->database); } public function getGetDatabaseName() { $this->assertEquals($this->getDatabaseName(), $this->database->getDatabaseName()); } public function testDrop() { $bulkWrite = new BulkWrite(); $bulkWrite->insert(['x' => 1]); $writeResult = $this->manager->executeBulkWrite($this->getNamespace(), $bulkWrite); $this->assertEquals(1, $writeResult->getInsertedCount()); $commandResult = $this->database->drop(); $this->assertCommandSucceeded($commandResult); $this->assertCollectionCount($this->getNamespace(), 0); } }