Code Duplication    Length = 8-8 lines in 3 locations

lib/custom/tests/MShop/Customer/Manager/Lists/LaravelTest.php 1 location

@@ 286-293 (lines=8) @@
283
	}
284
285
286
	public function testGetSubManager()
287
	{
288
		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') );
289
		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Standard') );
290
291
		$this->setExpectedException( '\\Aimeos\\MShop\\Exception' );
292
		$this->object->getSubManager( 'unknown' );
293
	}
294
295
296
	protected function getListItems()

lib/custom/tests/MShop/Customer/Manager/Property/LaravelTest.php 1 location

@@ 195-202 (lines=8) @@
192
	}
193
194
195
	public function testGetSubManager()
196
	{
197
		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') );
198
		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Standard') );
199
200
		$this->setExpectedException('\\Aimeos\\MShop\\Exception');
201
		$this->object->getSubManager('unknown');
202
	}
203
204
205
	public function testGetSubManagerInvalidName()

lib/custom/tests/MShop/Customer/Manager/LaravelTest.php 1 location

@@ 277-284 (lines=8) @@
274
	}
275
276
277
	public function testGetSubManager()
278
	{
279
		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'address' ) );
280
		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'address', 'Standard' ) );
281
282
		$this->setExpectedException( '\\Aimeos\\MShop\\Exception' );
283
		$this->object->getSubManager( 'unknown' );
284
	}
285
286
287
	public function testGetSubManagerInvalidName()