Completed
Branch master (136162)
by Aimeos
06:57
created

ViewTest::testCreateNoLocale()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 12
dl 0
loc 19
rs 9.8666
c 2
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
4
class ViewTest extends AimeosTestAbstract
5
{
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
	}
26
}
27