public function testAddControllerDecoratorsExcludes() { $this->context->getConfig()->set('controller/jobs/test/decorators/excludes', array('TestDecorator')); $this->context->getConfig()->set('controller/jobs/common/decorators/default', array('TestDecorator')); $this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception'); \Aimeos\Controller\Jobs\Admin\Job\Factory::createController($this->context, $this->aimeos, 'Standard'); }
public function testFactoryExceptionWrongInterface() { $context = \TestHelper::getContext(); $aimeos = \TestHelper::getAimeos(); $this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception'); \Aimeos\Controller\Jobs\Admin\Job\Factory::createController($context, $aimeos, 'Factory'); }