コード例 #1
0
 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());
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: kodorider/renta
 /**
  * Gets all connection names.
  *
  * @return array An array of connection names.
  * @static 
  */
 public static function getManagerNames()
 {
     return \LaravelDoctrine\ORM\IlluminateRegistry::getManagerNames();
 }