| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 36 | public function testSet() |
||
| 37 | { |
||
| 38 | $item = \Aimeos\MShop::create( \TestHelperCntl::getContext(), 'catalog' )->createItem(); |
||
| 39 | $item->setCode( 'cache-test' ); |
||
| 40 | $item->setId( 1 ); |
||
| 41 | |||
| 42 | $this->object->set( $item ); |
||
| 43 | $id = $this->object->get( 'cache-test' ); |
||
| 44 | |||
| 45 | $this->assertEquals( $item->getId(), $id ); |
||
| 46 | } |
||
| 48 |