Esempio n. 1
0
 public function testAbstractAddDecorators()
 {
     $context = TestHelper::getContext();
     $config = $context->getConfig();
     $config->set('controller/extjs/common/decorators/default', array('Example', 'Example'));
     $config->set('controller/extjs/plugin/decorators/excludes', array());
     $controller = Controller_ExtJS_Plugin_Factory::createController($context, 'Default');
     $this->assertInstanceOf('Controller_ExtJS_Common_Decorator_Interface', $controller);
 }
Esempio n. 2
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $context = TestHelper::getContext();
     $controller = Controller_ExtJS_Plugin_Factory::createController($context);
     $this->_object = new Controller_ExtJS_Plugin_Decorator_Example($context, $controller);
 }