Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function testAddProductBundle() |
||
30 | { |
||
31 | $item = \Aimeos\MShop\Factory::createManager( $this->context, 'product' )->findItem( 'U:BUNDLE' ); |
||
32 | |||
33 | $this->object->addProduct( $item->getId(), 1 ); |
||
34 | |||
35 | $this->assertEquals( 1, count( $this->object->get()->getProducts() ) ); |
||
36 | $this->assertEquals( 'U:BUNDLE', $this->object->get()->getProduct( 0 )->getProductCode() ); |
||
37 | $this->assertEquals( 2, count( $this->object->get()->getProduct( 0 )->getProducts() ) ); |
||
38 | } |
||
39 | } |
||
40 |