Beispiel #1
0
 public function testInjectManagerReset()
 {
     $manager = \Aimeos\MShop\Attribute\Manager\Factory::createManager($this->context, 'Standard');
     \Aimeos\MShop\Attribute\Manager\Factory::injectManager('\\Aimeos\\MShop\\Attribute\\Manager\\StandardMock', $manager);
     \Aimeos\MShop\Attribute\Manager\Factory::injectManager('\\Aimeos\\MShop\\Attribute\\Manager\\StandardMock', null);
     $this->setExpectedException('\\Aimeos\\MShop\\Exception');
     \Aimeos\MShop\Attribute\Manager\Factory::createManager($this->context, 'StandardMock');
 }