示例#1
0
 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');
 }
示例#2
0
 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');
 }