setUp() protected method

Template Method that is called before the tests of this test suite are run.
protected setUp ( )
Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->sharedFixture = array();
     foreach ($this->configKeys as $cfgKey) {
         $this->sharedFixture['config'][substr($cfgKey, 4)] = $GLOBALS[$cfgKey];
     }
 }
Example #2
0
 protected function setUp()
 {
     parent::setUp();
 }
 protected function setUp()
 {
     parent::setUp();
     jApp::pushCurrentModule($this->module);
 }
 protected function setUp()
 {
     parent::setUp();
     jContext::push($this->module);
 }
Example #5
0
 public function setUp()
 {
     \Amiss\Test\Helper\Env::instance()->connectionInfo = $this->connectionInfo;
     parent::setUp();
 }
 protected function setUp()
 {
     parent::setUp();
     // load CakePHP fixture
     if (class_exists('CakeFixtureManager')) {
         $this->fixtureManager = $this->_getFixtureManager();
     }
     foreach ($this->getIterator() as $test) {
         if ($test instanceof CakeTestCase) {
             $this->fixtureManager->fixturize($test);
             $test->fixtureManager = $this->fixtureManager;
         }
     }
 }