Code Duplication    Length = 6-6 lines in 2 locations

tests/ElasticSearchPageControllerTest.php 2 locations

@@ 381-386 (lines=6) @@
378
		$ctr = 0;
379
380
		// results vary slightly due to sharding, hence check for a string instead of absolute results
381
		while ($ctr < 18) {
382
			$this->assertSelectorContains('div.searchResult a', $ctr, 'New Orleans, Southern Pacific');
383
			$ctr++;
384
			$this->assertSelectorStartsWithOrEquals('div.searchResult a', $ctr, 'Similar');
385
			$ctr++;
386
		}
387
388
	}
389
@@ 416-421 (lines=6) @@
413
		$this->assertEquals(200, $response->getStatusCode());
414
415
				// results vary slightly due to sharding, hence check for a string instead of absolute results
416
		while ($ctr < 18) {
417
			$this->assertSelectorContains('div.searchResult a', $ctr, 'New', true);
418
			$ctr++;
419
			$this->assertSelectorStartsWithOrEquals('div.searchResult a', $ctr, 'Similar');
420
			$ctr++;
421
		}
422
423
424