Commit 4146fac8 authored by Jeremy Mikola's avatar Jeremy Mikola

Ensure database is dropped before asserting it doesn't exist

Versions of MongoDB before 3.0 create a database when dropping the collection of a database that doesn't exist (as is done by the setUp() method).
parent 82a44c5f
......@@ -27,6 +27,9 @@ class DropDatabaseFunctionalTest extends FunctionalTestCase
{
$server = $this->getPrimaryServer();
$operation = new DropDatabase($this->getDatabaseName());
$operation->execute($server);
$this->assertDatabaseDoesNotExist($server, $this->getDatabaseName());
$operation = new DropDatabase($this->getDatabaseName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment