Skip to content

Commit

Permalink
Merge pull request #59 from alquerci/fix-and-add-test-for-getconnecti…
Browse files Browse the repository at this point in the history
…ondrivers-method

Fix and add test for getConnectionDrivers method
  • Loading branch information
j0k3r authored Sep 14, 2018
2 parents 52e9d9b + 03fcdc9 commit 44abc88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ public function registerConnectionDriver($name, $class)
*/
public function getConnectionDrivers()
{
return $this->_connectionsDrivers;
return $this->_connectionDrivers;
}

/**
Expand Down
5 changes: 5 additions & 0 deletions tests/ManagerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,9 @@ public function testConnectionInformationDecoded()
}
public function prepareData() { }
public function prepareTables() { }

public function testGetConnectionDrivers()
{
$this->assertTrue(is_array($this->manager->getConnectionDrivers()));
}
}

0 comments on commit 44abc88

Please sign in to comment.