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 = \Aimeos\Controller\ExtJS\Plugin\Factory::createController($context, 'Standard'); $this->assertInstanceOf('\\Aimeos\\Controller\\ExtJS\\Common\\Decorator\\Iface', $controller); }
/** * 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 = \Aimeos\Controller\ExtJS\Plugin\Factory::createController($context); $this->object = new \Aimeos\Controller\ExtJS\Plugin\Decorator\Example($context, $controller); }