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

@@ 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