ViewTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 13
c 0
b 0
f 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateNoLocale() 0 19 1
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();
19
		$context->setConfig( new \Aimeos\Base\Config\PHPArray() );
20
		$context->setSession( new \Aimeos\Base\Session\None() );
21
22
		$object = new \Aimeos\Shop\Base\View( $config, $i18n, $support );
23
24
		$this->assertInstanceOf( '\Aimeos\Base\View\Iface', $object->create( $context, array() ) );
25
	}
26
}
27