public function _before(\Codeception\TestCase $test) { if ($this->config['cleanup']) { $this->cleanup(); } parent::_before($test); }
public function _before(TestInterface $test) { if ($this->config['cleanup']) { $this->cleanup(); } parent::_before($test); }
public function _before(\Codeception\TestCase $test) { parent::_before($test); ///////////////////////////////////// // initialize your database here ///////////////////////////////////// }
/** * Code to run before each test * * @param TestInterface $test */ public function _before(TestInterface $test) { if ($this->config['reconnect']) { $this->connect(); } $this->removeInserted(); parent::_before($test); }
/** * @param \Codeception\TestCase $test * * @return void */ public function _before(TestCase $test) { parent::_before($test); Propel::getWriteConnection('zed')->beginTransaction(); }
/** * Before test case hook * * @param TestCase $test test * * @return void */ public function _before(TestCase $test) { parent::_before($test); $this->module->_before($test); }
/** * {@inheritDoc} * @see \Codeception\Module::_before() */ public function _before(TestCase $testCase) { parent::_before($testCase); }
public function _before(\Codeception\TestCase $test) { if ($this->config['cleanup'] && !$this->populated) { $this->cleanup(); $this->loadDump(); } parent::_before($test); }
/** * @param TestCase $testcase */ public function _before(TestCase $testcase) { $this->unloadFixtures(); $this->loadFixtures(); parent::_before($testcase); }
public function _before(TestCase $test) { if ($this->config['reconnect']) { $this->connect(); } if ($this->config['cleanup'] && !$this->populated) { $this->cleanup(); $this->loadDump(); } parent::_before($test); }
/** * @param Cept $cept */ public function _before(Cept $cept) { $this->unloadFixtures(); $this->loadFixtures(); parent::_before($cept); }
public function _before(TestCase $test) { $this->debug(__CLASS__ . '::_before [' . $test->getName() . ']'); $this->initSignalHandler(); parent::_before($test); }