Code Duplication    Length = 9-9 lines in 2 locations

tests/ElasticSearcherUnitTest.php 1 location

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

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