Example #1
0
 protected function tearDown()
 {
     \Aimeos\MShop\Factory::clear();
     \Aimeos\MShop\Factory::setCache(false);
     \Aimeos\Controller\Frontend\Basket\Factory::createController($this->context)->clear();
     unset($this->object);
 }
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     \Aimeos\MShop\Factory::setCache(false);
     \Aimeos\MShop\Factory::clear();
     $this->object = null;
     if (file_exists('tmp/import.zip')) {
         unlink('tmp/import.zip');
     }
 }
Example #3
0
 public function testClearSpecific()
 {
     $cache = \Aimeos\MShop\Factory::setCache(true);
     $context = \TestHelperMShop::getContext();
     $managerA1 = \Aimeos\MShop\Factory::createManager($context, 'attribute');
     $managerB1 = \Aimeos\MShop\Factory::createManager($context, 'attribute/lists/type');
     \Aimeos\MShop\Factory::clear((string) $context, 'attribute');
     $managerA2 = \Aimeos\MShop\Factory::createManager($context, 'attribute');
     $managerB2 = \Aimeos\MShop\Factory::createManager($context, 'attribute/lists/type');
     \Aimeos\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);
     \Aimeos\Controller\Frontend\Factory::clear();
     \Aimeos\MShop\Factory::clear();
 }
Example #5
0
 protected function tearDown()
 {
     \Aimeos\MShop\Factory::clear();
 }
Example #6
0
 protected function tearDown()
 {
     \Aimeos\MShop\Factory::setCache(false);
     \Aimeos\MShop\Factory::clear();
 }
Example #7
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()
 {
     \Aimeos\MShop\Factory::setCache(false);
     \Aimeos\MShop\Factory::clear();
     $this->object = null;
 }
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()
 {
     $this->object = null;
     \Aimeos\Controller\ExtJS\Factory::clear();
     \Aimeos\MShop\Factory::clear();
 }
 public function tearDown()
 {
     \Aimeos\MShop\Factory::clear();
 }