Commit aa5b258e authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-186: Tests for getManager() accessor methods

parent 97cc5ff4
...@@ -22,6 +22,11 @@ class ClientFunctionalTest extends FunctionalTestCase ...@@ -22,6 +22,11 @@ class ClientFunctionalTest extends FunctionalTestCase
$this->client->dropDatabase($this->getDatabaseName()); $this->client->dropDatabase($this->getDatabaseName());
} }
public function testGetManager()
{
$this->assertInstanceOf('MongoDB\Driver\Manager', $this->client->getManager());
}
public function testDropDatabase() public function testDropDatabase()
{ {
$bulkWrite = new BulkWrite(); $bulkWrite = new BulkWrite();
......
...@@ -73,6 +73,11 @@ class CollectionFunctionalTest extends FunctionalTestCase ...@@ -73,6 +73,11 @@ class CollectionFunctionalTest extends FunctionalTestCase
return $options; return $options;
} }
public function testGetManager()
{
$this->assertSame($this->manager, $this->collection->getManager());
}
public function testToString() public function testToString()
{ {
$this->assertEquals($this->getNamespace(), (string) $this->collection); $this->assertEquals($this->getNamespace(), (string) $this->collection);
......
...@@ -63,6 +63,11 @@ class DatabaseFunctionalTest extends FunctionalTestCase ...@@ -63,6 +63,11 @@ class DatabaseFunctionalTest extends FunctionalTestCase
return $options; return $options;
} }
public function testGetManager()
{
$this->assertSame($this->manager, $this->database->getManager());
}
public function testToString() public function testToString()
{ {
$this->assertEquals($this->getDatabaseName(), (string) $this->database); $this->assertEquals($this->getDatabaseName(), (string) $this->database);
......
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