예제 #1
0
 public static function bootstrap()
 {
     set_error_handler('TestHelperExtjs::errorHandler');
     self::getAimeos();
     \Aimeos\MShop\Factory::setCache(false);
     \Aimeos\Controller\ExtJS\Factory::setCache(false);
 }
예제 #2
0
 public function testClearSpecific()
 {
     $cache = \Aimeos\Controller\ExtJS\Factory::setCache(true);
     $context = \TestHelper::getContext();
     $cntlA1 = \Aimeos\Controller\ExtJS\Factory::createController($context, 'attribute');
     $cntlB1 = \Aimeos\Controller\ExtJS\Factory::createController($context, 'attribute/lists/type');
     \Aimeos\Controller\ExtJS\Factory::clear((string) $context, 'attribute');
     $cntlA2 = \Aimeos\Controller\ExtJS\Factory::createController($context, 'attribute');
     $cntlB2 = \Aimeos\Controller\ExtJS\Factory::createController($context, 'attribute/lists/type');
     \Aimeos\Controller\ExtJS\Factory::setCache($cache);
     $this->assertNotSame($cntlA1, $cntlA2);
     $this->assertSame($cntlB1, $cntlB2);
 }
예제 #3
0
 public static function bootstrap()
 {
     self::getAimeos();
     \Aimeos\MShop\Factory::setCache(false);
     \Aimeos\Controller\ExtJS\Factory::setCache(false);
 }