Total Complexity | 7 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class EzpublishTest extends \PHPUnit\Framework\TestCase |
||
13 | { |
||
14 | private $object; |
||
15 | |||
16 | |||
17 | protected function setUp() : void |
||
18 | { |
||
19 | $customer = new \Aimeos\MShop\Customer\Manager\Ezpublish( \TestHelper::getContext() ); |
||
20 | |||
21 | $this->object = $customer->getSubManager( 'address', 'Ezpublish' ); |
||
22 | } |
||
23 | |||
24 | |||
25 | protected function tearDown() : void |
||
26 | { |
||
27 | unset( $this->object ); |
||
28 | } |
||
29 | |||
30 | |||
31 | public function testClear() |
||
32 | { |
||
33 | $this->assertInstanceOf( \Aimeos\MShop\Common\Manager\Iface::class, $this->object->clear( array( -1 ) ) ); |
||
34 | } |
||
35 | |||
36 | |||
37 | public function testDeleteItems() |
||
40 | } |
||
41 | |||
42 | |||
43 | public function testGetSearchAttributes() |
||
44 | { |
||
45 | $attributes = $this->object->getSearchAttributes(); |
||
46 | $this->assertGreaterThan( 0, count( $attributes ) ); |
||
47 | |||
48 | foreach( $attributes as $attribute ) { |
||
49 | $this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Attribute\\Iface', $attribute ); |
||
50 | } |
||
51 | } |
||
52 | |||
53 | |||
54 | public function testGetSubManager() |
||
58 | } |
||
59 | } |
||
60 |