| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function testSet() |
||
| 45 | { |
||
| 46 | $item = \Aimeos\MShop::create( \TestHelper::context(), 'product' )->create(); |
||
| 47 | $item->setCode( 'cache-test' ); |
||
| 48 | $item->setId( 1 ); |
||
| 49 | |||
| 50 | $this->object->set( $item ); |
||
| 51 | $id = $this->object->get( 'cache-test' ); |
||
| 52 | |||
| 53 | $this->assertEquals( $item->getId(), $id ); |
||
| 54 | } |
||
| 56 |