protected function setUp() { parent::setUp(); $this->storedCustomerSecurity = \XLite\Core\Config::getInstance()->Security->customer_security; if (!$this->storedCustomerSecurity) { // Enable customer_security if it is disabled $this->setUpCheckoutViaHTTPS(true); } }
/** * PHPUnit default function. * Redefine this method only if you really need to do so. * In any other cases redefine the getRequest() one * * @return void * @access protected * @see ____func_see____ * @since 1.0.0 */ protected function setUp() { parent::setUp(); \Includes\Utils\FileManager::copyRecursive(dirname(__FILE__) . LC_DS . 'SubstutionalSkin' . LC_DS . 'scripts' . LC_DS . 'CDev', LC_DIR_MODULES . 'CDev'); \Includes\Utils\FileManager::copyRecursive(dirname(__FILE__) . LC_DS . 'SubstutionalSkin' . LC_DS . 'scripts' . LC_DS . 'CDev', LC_DIR_CACHE_CLASSES . 'XLite' . LC_DS . 'Module' . LC_DS . 'CDev'); \Includes\Utils\FileManager::copyRecursive(dirname(__FILE__) . LC_DS . 'SubstutionalSkin' . LC_DS . 'skins', LC_DIR_SKINS); $skin = \XLite\Core\Database::getRepo('XLite\\Model\\Module')->findOneBy(array('name' => 'TestSkin', 'author' => 'CDev')); if (!$skin) { $skin = new \XLite\Model\Module(); $skin->setAuthor('CDev'); $skin->setName('TestSkin'); $skin->setMajorVersion('1.0'); $skin->setMinorVersion('0'); $skin->setModuleName('TestSkin'); $skin->setAuthorName('CDev'); \XLite\Core\Database::getEM()->persist($skin); } $skin->setInstalled(true); $skin->setEnabled(true); \XLite\Core\Database::getEM()->flush(); \XLite\Core\Database::getCacheDriver()->deleteAll(); \Includes\Utils\FileManager::unlinkRecursive(LC_DIR_COMPILE . 'skins'); }
protected function setUp() { parent::setUp(); $this->sleep = $this->setSleep(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(); }