/**
  * @test
  */
 public function stockAction()
 {
     $name = '\\Aimeos\\Client\\Html\\Catalog\\Stock\\Standard';
     $client = $this->getMock($name, array('getBody', 'getHeader', 'process'), array(), '', false);
     $client->expects($this->once())->method('getBody')->will($this->returnValue('body'));
     $client->expects($this->once())->method('getHeader')->will($this->returnValue('header'));
     \Aimeos\Client\Html\Catalog\Stock\Factory::injectClient($name, $client);
     $output = $this->object->stockAction();
     \Aimeos\Client\Html\Catalog\Stock\Factory::injectClient($name, null);
     $this->assertEquals('body', $output);
 }
 /**
  * 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');
 }