Esempio n. 1
0
 public function test_can_check_if_manager_exists()
 {
     $this->container->shouldReceive('singleton')->once();
     $this->registry->addManager('default');
     $this->assertFalse($this->registry->managerExists('non-existing'));
     $this->assertTrue($this->registry->managerExists('default'));
 }
Esempio n. 2
0
 /**
  * 
  *
  * @param string $name
  * @return bool 
  * @static 
  */
 public static function managerExists($name)
 {
     return \LaravelDoctrine\ORM\IlluminateRegistry::managerExists($name);
 }