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), 2020
*/
namespace Aimeos\Client\Html\Supplier\Detail;
class FactoryTest extends \PHPUnit\Framework\TestCase
{
private $context;
protected function setUp() : void
$this->context = \TestHelperHtml::getContext();
}
protected function tearDown() : void
unset( $this->context );
public function testCreateClient()
$client = \Aimeos\Client\Html\Supplier\Detail\Factory::create( $this->context );
$this->assertInstanceOf( '\\Aimeos\\Client\\Html\\Iface', $client );
public function testCreateClientName()
$client = \Aimeos\Client\Html\Supplier\Detail\Factory::create( $this->context, 'Standard' );
public function testCreateClientNameInvalid()
$this->expectException( '\\Aimeos\\Client\\Html\\Exception' );
\Aimeos\Client\Html\Supplier\Detail\Factory::create( $this->context, '$$$' );
public function testCreateClientNameNotFound()
\Aimeos\Client\Html\Supplier\Detail\Factory::create( $this->context, 'notfound' );