Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | protected function setUp() |
||
20 | { |
||
21 | $context = \TestHelperMShop::getContext(); |
||
22 | |||
23 | $priceItem = \Aimeos\MShop\Price\Manager\Factory::createManager( $context )->createItem(); |
||
24 | $this->order = new \Aimeos\MShop\Order\Item\Base\Standard( $priceItem, $context->getLocale() ); |
||
25 | |||
26 | $pluginManager = \Aimeos\MShop\Plugin\Manager\Factory::createManager( $context ); |
||
27 | $item = $pluginManager->createItem(); |
||
28 | |||
29 | |||
30 | $this->mock = $this->getMockBuilder( '\Aimeos\MShop\Plugin\Provider\Decorator\Example' ) |
||
31 | ->disableOriginalConstructor() |
||
32 | ->setMethods( ['update'] ) |
||
33 | ->getMock(); |
||
34 | |||
35 | $this->object = new \Aimeos\MShop\Plugin\Provider\Decorator\Singleton( $context, $item, $this->mock ); |
||
36 | } |
||
37 | |||
52 |