protected function setUp() { $this->context = \TestHelper::getContext(); $customer = new \Aimeos\MShop\Customer\Manager\Ezpublish($this->context); $this->object = $customer->getSubManager('group', 'Ezpublish'); }
public function testSaveItemInvalidContext() { $context = new \Aimeos\MShop\Context\Item\Standard(); $context->setConfig($this->context->getConfig()); $object = new \Aimeos\MShop\Customer\Manager\Ezpublish($context); $this->setExpectedException('\\Aimeos\\MShop\\Customer\\Exception'); $object->saveItem(new \Aimeos\MShop\Customer\Item\Standard($this->address)); }
protected function setUp() { $customer = new \Aimeos\MShop\Customer\Manager\Ezpublish(\TestHelper::getContext()); $this->object = $customer->getSubManager('address', 'Ezpublish'); }