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

ContextTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetNoLocale() 0 12 1
1
<?php
2
3
class ContextTest extends AimeosTestAbstract
4
{
5
	public function testGetNoLocale()
6
	{
7
		$session = $this->getMockBuilder('\Illuminate\Session\Store')->disableOriginalConstructor()->getMock();
8
		$config = $this->app->make( '\Aimeos\Shop\Base\Config' );
9
		$locale = $this->app->make( '\Aimeos\Shop\Base\Locale' );
10
		$i18n = $this->app->make( '\Aimeos\Shop\Base\I18n' );
11
12
		$object = new \Aimeos\Shop\Base\Context( $session, $config, $locale, $i18n );
13
		$ctx = $object->get( false );
14
15
		$this->assertInstanceOf( '\Aimeos\MShop\Context\Item\Iface', $ctx );
16
		$this->assertInternalType( 'array', $ctx->getGroupIds() );
17
	}
18
}
19