public function testGetConnectionNames() { $container = $this->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface'); $registry = new Registry($container, array('default' => 'doctrine.dbal.default_connection'), array(), 'default', 'default'); $this->assertEquals(array('default' => 'doctrine.dbal.default_connection'), $registry->getConnectionNames()); }
/** * @return array */ public function getConnectionNames() { $connections = $this->doctrine->getConnectionNames(); return $connections; }