Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function testTransform() |
||
36 | { |
||
37 | $manager = \Aimeos\MShop::create( \TestHelper::context(), 'attribute' ); |
||
38 | $search = $manager->filter()->slice( 0, 1 ); |
||
39 | $search->setConditions( $search->compare( '!=', $search->make( 'attribute:has', ['price'] ), null ) ); |
||
40 | $item = $manager->search( $search, ['price'] )->first( new \Exception( 'No item found' ) ); |
||
41 | |||
42 | $result = $this->object->transform( $item ); |
||
43 | |||
44 | $this->assertRegexp( '/[^ ]+ \(\+[0-9]+\.[0-9]+EUR\)/', $result ); |
||
45 | } |
||
47 |