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), 2021
*/
namespace Aimeos\Admin\JQAdm\Rule;
class FactoryTest extends \PHPUnit\Framework\TestCase
{
private $context;
protected function setUp() : void
$this->context = \TestHelperJqadm::getContext();
$this->context->setView( \TestHelperJqadm::getView() );
}
public function testCreateClient()
$client = \Aimeos\Admin\JQAdm\Rule\Factory::create( $this->context );
$this->assertInstanceOf( '\\Aimeos\\Admin\\JQAdm\\Iface', $client );
public function testCreateClientName()
$client = \Aimeos\Admin\JQAdm\Rule\Factory::create( $this->context, 'Standard' );
public function testCreateClientNameEmpty()
$this->expectException( '\\Aimeos\\Admin\\JQAdm\\Exception' );
\Aimeos\Admin\JQAdm\Rule\Factory::create( $this->context, '' );
public function testCreateClientNameInvalid()
\Aimeos\Admin\JQAdm\Rule\Factory::create( $this->context, '%rule' );
public function testCreateClientNameNotFound()
\Aimeos\Admin\JQAdm\Rule\Factory::create( $this->context, 'test' );