Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function testSet() |
||
46 | { |
||
47 | $item = \Aimeos\MShop\Factory::createManager( \TestHelperCntl::getContext(), 'product/stock/type' )->createItem(); |
||
48 | $item->setCode( 'cache-test' ); |
||
49 | $item->setId( 1 ); |
||
50 | |||
51 | $this->object->set( $item ); |
||
52 | $id = $this->object->get( 'cache-test' ); |
||
53 | |||
54 | $this->assertEquals( $item->getId(), $id ); |
||
55 | } |
||
56 | } |