public function test_can_get_manager_names() { $this->container->shouldReceive('singleton')->twice(); $this->registry->addManager('default'); $this->registry->addManager('custom'); $this->assertCount(2, $this->registry->getManagerNames()); $this->assertContains('default', $this->registry->getManagerNames()); $this->assertContains('custom', $this->registry->getManagerNames()); }
/** * Gets all connection names. * * @return array An array of connection names. * @static */ public static function getManagerNames() { return \LaravelDoctrine\ORM\IlluminateRegistry::getManagerNames(); }