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
*/
namespace Aimeos\MShop\Customer\Manager\Address;
class EzpublishTest extends \PHPUnit_Framework_TestCase
{
private $object;
protected function setUp()
$customer = new \Aimeos\MShop\Customer\Manager\Ezpublish( \TestHelper::getContext() );
$this->object = $customer->getSubManager( 'address', 'Ezpublish' );
}
protected function tearDown()
unset( $this->object );
public function testCleanup()
$this->object->cleanup( array( -1 ) );
public function testDeleteItems()
$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->setExpectedException( '\\Aimeos\\MShop\\Exception' );
$this->object->getSubManager( 'unknown' );