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

@@ 249-258 (lines=10) @@
246
	}
247
248
249
	public function testSearchItemsCriteria()
250
	{
251
		$search = $this->object->createSearch( true );
252
		$conditions = array(
253
			$search->compare( '==', 'customer.address.editor', $this->editor ),
254
			$search->getConditions()
255
		);
256
		$search->setConditions( $search->combine( '&&', $conditions ) );
257
		$this->assertEquals( 2, count( $this->object->searchItems( $search, [], $total ) ) );
258
	}
259
260
261
	public function testSearchItemsRef()