protected function tearDown() { parent::tearDown(); if (!$this->storedCustomerSecurity) { // Disable customer_security if it was disabled before test run $this->setUpCheckoutViaHTTPS(false); } }
protected function tearDown() { parent::tearDown(); $this->setSleep($this->sleep); }
/** * PHPUnit default function. * It's not recommended to redefine this method * * @return void * @access protected * @see ____func_see____ * @since 1.0.0 */ protected function tearDown() { \Includes\Utils\FileManager::unlinkRecursive(LC_DIR_MODULES . 'CDev' . LC_DS . 'TestSkin'); \Includes\Utils\FileManager::unlinkRecursive(LC_DIR_CACHE_CLASSES . 'XLite' . LC_DS . 'Module' . LC_DS . 'CDev' . LC_DS . 'TestSkin'); \Includes\Utils\FileManager::unlinkRecursive(LC_DIR_SKINS . 'test'); $skin = \XLite\Core\Database::getRepo('XLite\\Model\\Module')->findOneBy(array('name' => 'TestSkin', 'author' => 'CDev')); if ($skin) { \XLite\Core\Database::getEM()->remove($skin); \XLite\Core\Database::getEM()->flush(); } \XLite\Core\Database::getCacheDriver()->deleteAll(); \Includes\Utils\FileManager::unlinkRecursive(LC_DIR_COMPILE . 'skins'); parent::tearDown(); }