| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | public function testCreateNoLocale() |
||
| 7 | { |
||
| 8 | $config = $this->getMockBuilder('\Illuminate\Config\Repository')->getMock(); |
||
| 9 | |||
| 10 | $i18n = $this->getMockBuilder( '\Aimeos\Shop\Base\I18n' ) |
||
| 11 | ->disableOriginalConstructor() |
||
| 12 | ->getMock(); |
||
| 13 | |||
| 14 | $support = $this->getMockBuilder( '\Aimeos\Shop\Base\Support' ) |
||
| 15 | ->disableOriginalConstructor() |
||
| 16 | ->getMock(); |
||
| 17 | |||
| 18 | $context = new \Aimeos\MShop\Context\Item\Standard(); |
||
| 19 | $context->setConfig( new \Aimeos\MW\Config\PHPArray() ); |
||
| 20 | $context->setSession( new \Aimeos\MW\Session\None() ); |
||
| 21 | |||
| 22 | $object = new \Aimeos\Shop\Base\View( $config, $i18n, $support ); |
||
| 23 | |||
| 24 | $this->assertInstanceOf( '\Aimeos\MW\View\Iface', $object->create( $context, array() ) ); |
||
| 25 | } |
||
| 27 |