for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2019-2022
*/
namespace Aimeos\Client\Html\Catalog\Home;
class StandardTest extends \PHPUnit\Framework\TestCase
{
private $object;
private $context;
private $view;
protected function setUp() : void
$this->view = \TestHelperHtml::view();
$this->context = \TestHelperHtml::context();
$this->object = new \Aimeos\Client\Html\Catalog\Home\Standard( $this->context );
$this->object->setView( $this->view );
}
protected function tearDown() : void
unset( $this->object, $this->context, $this->view );
public function testHeader()
$tags = [];
$expire = null;
$this->object->setView( $this->object->data( $this->view, $tags, $expire ) );
$output = $this->object->header();
$this->assertStringContainsString( '<title>Root | Aimeos</title>', $output );
public function testBody()
$output = $this->object->body();
$this->assertStringContainsString( 'root', $output );