Example #1
0
 protected function tearDown()
 {
     MShop_Factory::clear();
     MShop_Factory::setCache(false);
     Controller_Frontend_Basket_Factory::createController($this->_context)->clear();
     unset($this->_object);
 }
Example #2
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     MShop_Factory::setCache(false);
     MShop_Factory::clear();
     $this->_object = null;
     if (file_exists('tmp/import.zip')) {
         unlink('tmp/import.zip');
     }
 }
Example #3
0
 public function testClearSpecific()
 {
     $cache = MShop_Factory::setCache(true);
     $context = TestHelper::getContext();
     $managerA1 = MShop_Factory::createManager($context, 'attribute');
     $managerB1 = MShop_Factory::createManager($context, 'attribute/list/type');
     MShop_Factory::clear((string) $context, 'attribute');
     $managerA2 = MShop_Factory::createManager($context, 'attribute');
     $managerB2 = MShop_Factory::createManager($context, 'attribute/list/type');
     MShop_Factory::setCache($cache);
     $this->assertNotSame($managerA1, $managerA2);
     $this->assertSame($managerB1, $managerB2);
 }
Example #4
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     unset($this->_object);
     Controller_Frontend_Factory::clear();
     MShop_Factory::clear();
 }
Example #5
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     unset($this->_object);
     MShop_Factory::clear();
 }
Example #6
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     $this->_object = null;
     Controller_ExtJS_Factory::clear();
     MShop_Factory::clear();
 }
Example #7
0
 protected function tearDown()
 {
     MShop_Factory::setCache(false);
     MShop_Factory::clear();
 }
Example #8
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     MShop_Factory::setCache(false);
     MShop_Factory::clear();
     $this->_object = null;
 }
Example #9
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     $this->_object = null;
     MShop_Factory::clear();
 }