Пример #1
0
 public function testClearSpecific()
 {
     $cache = Controller_ExtJS_Factory::setCache(true);
     $context = TestHelper::getContext();
     $cntlA1 = Controller_ExtJS_Factory::createController($context, 'attribute');
     $cntlB1 = Controller_ExtJS_Factory::createController($context, 'attribute/list/type');
     Controller_ExtJS_Factory::clear((string) $context, 'attribute');
     $cntlA2 = Controller_ExtJS_Factory::createController($context, 'attribute');
     $cntlB2 = Controller_ExtJS_Factory::createController($context, 'attribute/list/type');
     Controller_ExtJS_Factory::setCache($cache);
     $this->assertNotSame($cntlA1, $cntlA2);
     $this->assertSame($cntlB1, $cntlB2);
 }