/**
  * @test
  */
 public function confirmAction()
 {
     $name = '\\Aimeos\\Client\\Html\\Checkout\\Confirm\\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\Checkout\Confirm\Factory::injectClient($name, $client);
     $output = $this->object->confirmAction();
     \Aimeos\Client\Html\Checkout\Confirm\Factory::injectClient($name, null);
     $this->assertEquals('body', $output);
 }
 /**
  * Processes requests and renders the checkout confirmation.
  */
 public function confirmAction()
 {
     $context = $this->getContext();
     $templatePaths = Base::getAimeos()->getCustomPaths('client/html');
     $client = \Aimeos\Client\Html\Checkout\Confirm\Factory::createClient($context, $templatePaths);
     $view = $context->getView();
     $param = array_merge(\TYPO3\CMS\Core\Utility\GeneralUtility::_GET(), \TYPO3\CMS\Core\Utility\GeneralUtility::_POST());
     $helper = new \Aimeos\MW\View\Helper\Parameter\Standard($view, $param);
     $view->addHelper('param', $helper);
     $client->setView($view);
     $client->process();
     $this->response->addAdditionalHeaderData($client->getHeader());
     return $client->getBody();
 }
 public function testCreateClientNameNotFound()
 {
     $this->setExpectedException('\\Aimeos\\Client\\Html\\Exception');
     \Aimeos\Client\Html\Checkout\Confirm\Factory::createClient($this->context, $this->templatePaths, 'notfound');
 }