コード例 #1
0
ファイル: Redis.php プロジェクト: itillawarra/cmfive
 public function _before(\Codeception\TestCase $test)
 {
     if ($this->config['cleanup']) {
         $this->cleanup();
     }
     parent::_before($test);
 }
コード例 #2
0
ファイル: Redis.php プロジェクト: foxman209/Codeception
 public function _before(TestInterface $test)
 {
     if ($this->config['cleanup']) {
         $this->cleanup();
     }
     parent::_before($test);
 }
コード例 #3
0
ファイル: UIHelper.php プロジェクト: mjarschel/komenco
 public function _before(\Codeception\TestCase $test)
 {
     parent::_before($test);
     /////////////////////////////////////
     // initialize your database here
     /////////////////////////////////////
 }
コード例 #4
0
 /**
  * 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);
 }
コード例 #5
0
ファイル: Functional.php プロジェクト: spryker/Stock
 /**
  * @param \Codeception\TestCase $test
  *
  * @return void
  */
 public function _before(TestCase $test)
 {
     parent::_before($test);
     Propel::getWriteConnection('zed')->beginTransaction();
 }
コード例 #6
0
 /**
  * Before test case hook
  *
  * @param TestCase $test test
  *
  * @return void
  */
 public function _before(TestCase $test)
 {
     parent::_before($test);
     $this->module->_before($test);
 }
コード例 #7
0
 /**
  * {@inheritDoc}
  * @see \Codeception\Module::_before()
  */
 public function _before(TestCase $testCase)
 {
     parent::_before($testCase);
 }
コード例 #8
0
ファイル: Db.php プロジェクト: lenninsanchez/donadores
 public function _before(\Codeception\TestCase $test)
 {
     if ($this->config['cleanup'] && !$this->populated) {
         $this->cleanup();
         $this->loadDump();
     }
     parent::_before($test);
 }
コード例 #9
0
 /**
  * @param TestCase $testcase
  */
 public function _before(TestCase $testcase)
 {
     $this->unloadFixtures();
     $this->loadFixtures();
     parent::_before($testcase);
 }
コード例 #10
0
ファイル: Db.php プロジェクト: hitechdk/Codeception
 public function _before(TestCase $test)
 {
     if ($this->config['reconnect']) {
         $this->connect();
     }
     if ($this->config['cleanup'] && !$this->populated) {
         $this->cleanup();
         $this->loadDump();
     }
     parent::_before($test);
 }
コード例 #11
0
 /**
  * @param Cept $cept
  */
 public function _before(Cept $cept)
 {
     $this->unloadFixtures();
     $this->loadFixtures();
     parent::_before($cept);
 }
コード例 #12
0
ファイル: CtrlC.php プロジェクト: natterbox/codeception-ctrlc
 public function _before(TestCase $test)
 {
     $this->debug(__CLASS__ . '::_before [' . $test->getName() . ']');
     $this->initSignalHandler();
     parent::_before($test);
 }