Code Duplication    Length = 9-9 lines in 2 locations

tests/TranslatableUnitTest.php 1 location

@@ 254-262 (lines=9) @@
251
		}
252
	}
253
254
	private function makeCode($paginated) {
255
		$results = $paginated->getList()->toArray();
256
		$ctr = 0;
257
		echo '$result = $paginated->getList()->toArray();' . "\n";
258
		foreach($results as $result) {
259
			echo '$this->assertEquals("' . $result->Title . '", $results[' . $ctr . ']->Title);' . "\n";
260
			$ctr++;
261
		}
262
	}
263
264
}
265

tests/ElasticSearcherUnitTest.php 1 location

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