Code Duplication    Length = 9-9 lines in 2 locations

tests/ElasticSearcherUnitTest.php 1 location

@@ 278-286 (lines=9) @@
275
	}
276
277
278
	private function makeCode($paginated) {
279
		$results = $paginated->getList()->toArray();
280
		$ctr = 0;
281
		echo '$result = $paginated->getList()->toArray();' . "\n";
282
		foreach ($results as $result) {
283
			echo '$this->assertEquals("' . $result->Title . '", $results[' . $ctr . ']->Title);' . "\n";
284
			$ctr++;
285
		}
286
	}
287
288
}
289

tests/TranslatableUnitTest.php 1 location

@@ 266-274 (lines=9) @@
263
		}
264
	}
265
266
	private function makeCode($paginated) {
267
		$results = $paginated->getList()->toArray();
268
		$ctr = 0;
269
		echo '$result = $paginated->getList()->toArray();'."\n";
270
		foreach ($results as $result) {
271
			echo '$this->assertEquals("'.$result->Title.'", $results['.$ctr.']->Title);'."\n";
272
			$ctr++;
273
		}
274
	}
275
276
}
277