public function testCreateClientNameNotFound() { $this->setExpectedException('\\Aimeos\\Client\\Html\\Exception'); \Aimeos\Client\Html\Email\Watch\Factory::createClient($this->context, $this->templatePaths, 'notfound'); }
/** * Returns the product notification e-mail client * * @param \Aimeos\MShop\Context\Item\Iface $context Context item object * @return \Aimeos\Client\Html\Iface Product notification e-mail client */ protected function getClient(\Aimeos\MShop\Context\Item\Iface $context) { if (!isset($this->client)) { $templatePaths = $this->getAimeos()->getCustomPaths('client/html/templates'); $this->client = \Aimeos\Client\Html\Email\Watch\Factory::createClient($context, $templatePaths); } return $this->client; }