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), 2015-2020
*/
namespace Aimeos\Client\Html\Common\Decorator;
class ClientTest extends \PHPUnit\Framework\TestCase
{
private $context;
protected function setUp() : void
$this->context = \TestHelperHtml::getContext();
}
public function testDecorateFactoryClientCommon()
$config = $this->context->getConfig();
$config->set( 'client/html/common/decorators/default', array( 'Example' ) );
$object = \Aimeos\Client\Html\Catalog\Filter\Factory::create( $this->context );
$this->assertInstanceOf( '\\Aimeos\\Client\\Html\\Common\\Decorator\\Iface', $object );
public function testDecorateFactoryClientGlobal()
$config->set( 'client/html/catalog/filter/decorators/global', array( 'Example' ) );
public function testDecorateSubClientGlobal()
$config->set( 'client/html/catalog/filter/tree/decorators/global', array( 'Example' ) );
$object = \Aimeos\Client\Html\Catalog\Filter\Factory::create( $this->context )->getSubClient( 'tree' );