コード例 #1
0
ファイル: Quantum.php プロジェクト: kingsj/core
 protected function tearDown()
 {
     parent::tearDown();
     if (!$this->storedCustomerSecurity) {
         // Disable customer_security if it was disabled before test run
         $this->setUpCheckoutViaHTTPS(false);
     }
 }
コード例 #2
0
ファイル: DragNDrop.php プロジェクト: kingsj/core
 protected function tearDown()
 {
     parent::tearDown();
     $this->setSleep($this->sleep);
 }
コード例 #3
0
ファイル: VAT.php プロジェクト: kingsj/core
 protected function getTestProduct()
 {
     return parent::getActiveProduct();
 }
コード例 #4
0
ファイル: SubstutionalSkin.php プロジェクト: kingsj/core
 /**
  * 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();
 }
コード例 #5
0
ファイル: MarketPrice.php プロジェクト: kingsj/core
 /**
  * setUp
  *
  * @return void
  * @see    ____func_see____
  * @since  1.0.10
  */
 protected function setUp()
 {
     parent::setUp();
     $this->product = $this->getActiveProduct();
     $this->origPrice = $this->product->getPrice();
 }