Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 230-239 (lines=10) @@
227
	}
228
229
230
	public function testSearchItemsBaseCriteria()
231
	{
232
		$search = $this->object->createSearch( true );
233
		$conditions = array(
234
			$search->compare( '==', 'customer.address.editor', $this->editor ),
235
			$search->getConditions()
236
		);
237
		$search->setConditions( $search->combine( '&&', $conditions ) );
238
		$this->assertEquals( 2, count( $this->object->searchItems( $search, [], $total ) ) );
239
	}
240
241
242
	public function testSearchItemsRef()

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()