Esempio n. 1
0
 protected function tearDown()
 {
     parent::tearDown();
     if (!$this->storedCustomerSecurity) {
         // Disable customer_security if it was disabled before test run
         $this->setUpCheckoutViaHTTPS(false);
     }
 }
Esempio n. 2
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->setSleep($this->sleep);
 }
Esempio n. 3
0
File: VAT.php Progetto: kingsj/core
 protected function getTestProduct()
 {
     return parent::getActiveProduct();
 }
Esempio n. 4
0
 /**
  * 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();
 }
Esempio n. 5
0
 /**
  * setUp
  *
  * @return void
  * @see    ____func_see____
  * @since  1.0.10
  */
 protected function setUp()
 {
     parent::setUp();
     $this->product = $this->getActiveProduct();
     $this->origPrice = $this->product->getPrice();
 }