Code Duplication    Length = 8-8 lines in 2 locations

tests/ElasticSearchPageControllerTest.php 2 locations

@@ 353-360 (lines=8) @@
350
	}
351
352
353
	public function testSimilarSearchServerDown() {
354
		$searchPageObj = $this->ElasticSearchPage2;
355
		$url = rtrim($searchPageObj->Link(), '/');
356
		$url .= "/similar/FlickrPhotoTO/77?ServerDown=1";
357
		$response = $this->get($url);
358
		$this->assertSelectorStartsWithOrEquals('div.error', 0,
359
			'Unable to connect to search server');
360
	}
361
362
363
	public function testNormalSearchServerDown() {
@@ 363-370 (lines=8) @@
360
	}
361
362
363
	public function testNormalSearchServerDown() {
364
		$searchPageObj = $this->ElasticSearchPage2;
365
		$url = rtrim($searchPageObj->Link(), '/');
366
		$url .= "?q=Zealand&ServerDown=1";
367
		$response = $this->get($url);
368
		$this->assertSelectorStartsWithOrEquals('div.error', 0,
369
			'Unable to connect to search server');
370
	}
371
372
373
	public function testSimilarValid() {