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), 2016-2018
*/
namespace Aimeos\MShop\Customer\Manager\Address;
class EzpublishTest extends \PHPUnit\Framework\TestCase
{
private $object;
protected function setUp() : void
$customer = new \Aimeos\MShop\Customer\Manager\Ezpublish( \TestHelper::getContext() );
$this->object = $customer->getSubManager( 'address', 'Ezpublish' );
}
protected function tearDown() : void
unset( $this->object );
public function testClear()
$this->assertInstanceOf( \Aimeos\MShop\Common\Manager\Iface::class, $this->object->clear( array( -1 ) ) );
public function testDeleteItems()
$this->assertInstanceOf( \Aimeos\MShop\Common\Manager\Iface::class, $this->object->deleteItems( array( -1 ) ) );
public function testGetSearchAttributes()
$attributes = $this->object->getSearchAttributes();
$this->assertGreaterThan( 0, count( $attributes ) );
foreach( $attributes as $attribute ) {
$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Attribute\\Iface', $attribute );
public function testGetSubManager()
$this->expectException( '\\Aimeos\\MShop\\Exception' );
$this->object->getSubManager( 'unknown' );