/** * Renders the catalog stock section. */ public function stockAction() { $templatePaths = Base::getAimeos()->getCustomPaths('client/html'); $client = \Aimeos\Client\Html\Catalog\Stock\Factory::createClient($this->getContext(), $templatePaths); return $this->getClientOutput($client); }
public function testCreateClientNameNotFound() { $this->setExpectedException('\\Aimeos\\Client\\Html\\Exception'); \Aimeos\Client\Html\Catalog\Stock\Factory::createClient($this->context, $this->templatePaths, 'notfound'); }