Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 274-283 (lines=10) @@
271
	}
272
273
274
	public function testSearchItemsBaseCriteria()
275
	{
276
		$search = $this->object->createSearch(true);
277
		$conditions = array(
278
			$search->compare( '==', 'customer.lists.editor', $this->editor ),
279
			$search->getConditions()
280
		);
281
		$search->setConditions( $search->combine( '&&', $conditions ) );
282
		$this->assertEquals( 4, count( $this->object->searchItems($search) ) );
283
	}
284
285
286
	public function testGetSubManager()

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

@@ 267-276 (lines=10) @@
264
	}
265
266
267
	public function testSearchItemsCriteria()
268
	{
269
		$search = $this->object->createSearch( true );
270
		$conditions = array(
271
			$search->compare( '==', 'customer.address.editor', $this->editor ),
272
			$search->getConditions()
273
		);
274
		$search->setConditions( $search->combine( '&&', $conditions ) );
275
		$this->assertEquals( 2, count( $this->object->searchItems( $search, [], $total ) ) );
276
	}
277
278
279
	public function testSearchItemsRef()