Code Duplication    Length = 8-8 lines in 6 locations

client/jsonapi/tests/Client/JsonApi/Attribute/StandardTest.php 1 location

@@ 19-26 (lines=8) @@
16
	private $view;
17
18
19
	protected function setUp()
20
	{
21
		$this->context = \TestHelperJapi::getContext();
22
		$templatePaths = \TestHelperJapi::getTemplatePaths();
23
		$this->view = $this->context->getView();
24
25
		$this->object = new \Aimeos\Client\JsonApi\Attribute\Standard( $this->context, $this->view, $templatePaths, 'attribute' );
26
	}
27
28
29
	public function testGetItem()

client/jsonapi/tests/Client/JsonApi/Catalog/StandardTest.php 1 location

@@ 19-26 (lines=8) @@
16
	private $view;
17
18
19
	protected function setUp()
20
	{
21
		$templatePaths = \TestHelperJapi::getTemplatePaths();
22
		$this->context = \TestHelperJapi::getContext();
23
		$this->view = $this->context->getView();
24
25
		$this->object = new \Aimeos\Client\JsonApi\Catalog\Standard( $this->context, $this->view, $templatePaths, 'catalog' );
26
	}
27
28
29
	protected function tearDown()

client/jsonapi/tests/Client/JsonApi/Product/StandardTest.php 1 location

@@ 19-26 (lines=8) @@
16
	private $view;
17
18
19
	protected function setUp()
20
	{
21
		$this->context = \TestHelperJapi::getContext();
22
		$templatePaths = \TestHelperJapi::getTemplatePaths();
23
		$this->view = $this->context->getView();
24
25
		$this->object = new \Aimeos\Client\JsonApi\Product\Standard( $this->context, $this->view, $templatePaths, 'product' );
26
	}
27
28
29
	public function testAggregateAttribute()

client/jsonapi/tests/Client/JsonApi/StandardTest.php 1 location

@@ 19-26 (lines=8) @@
16
	private $view;
17
18
19
	protected function setUp()
20
	{
21
		$this->context = \TestHelperJapi::getContext();
22
		$templatePaths = \TestHelperJapi::getTemplatePaths();
23
		$this->view = $this->context->getView();
24
25
		$this->object = new \Aimeos\Client\JsonApi\Standard( $this->context, $this->view, $templatePaths, '' );
26
	}
27
28
29
	public function testOptions()

client/jsonapi/tests/Client/JsonApi/Stock/StandardTest.php 1 location

@@ 19-26 (lines=8) @@
16
	private $view;
17
18
19
	protected function setUp()
20
	{
21
		$this->context = \TestHelperJapi::getContext();
22
		$templatePaths = \TestHelperJapi::getTemplatePaths();
23
		$this->view = $this->context->getView();
24
25
		$this->object = new \Aimeos\Client\JsonApi\Stock\Standard( $this->context, $this->view, $templatePaths, 'stock' );
26
	}
27
28
29
	public function testGetItem()

client/jsonapi/tests/Client/JsonApi/Locale/StandardTest.php 1 location

@@ 19-26 (lines=8) @@
16
	private $view;
17
18
19
	protected function setUp()
20
	{
21
		$this->context = \TestHelperJapi::getContext();
22
		$templatePaths = \TestHelperJapi::getTemplatePaths();
23
		$this->view = $this->context->getView();
24
25
		$this->object = new \Aimeos\Client\JsonApi\Locale\Standard( $this->context, $this->view, $templatePaths, 'locale' );
26
	}
27
28
29
	public function testGetItem()