Ejemplo n.º 1
0
 /**
  * @return null
  */
 public function setUp()
 {
     $this->map = array('user' => "\\TestFuel\\Fake\\Domain\\User\\UserDomain", 'user-email' => "\\TestFuel\\Fake\\Domain\\User\\Email\\EmailDomain", 'role' => "\\TestFuel\\Fake\\Domain\\Role\\RoleDomain");
     parent::setUp();
     KernelRegistry::setDomainMap($this->map);
     $this->builder = new DomainBuilder();
 }
Ejemplo n.º 2
0
 /**
  * Restore all the kernel registry settings with the settings backup 
  * that occured in the UnitTestStartup strategy
  *
  * @return	null
  */
 public function restoreKernelRegistry()
 {
     KernelRegistry::setParams(TestRegistry::getKernelParams());
     KernelRegistry::setDomainMap(TestRegistry::getKernelDomainMap());
 }