@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $url = rtrim($url, '/'); |
76 | 76 | |
77 | 77 | $response = $this->get($url); |
78 | - error_log(print_r($response,1)); |
|
78 | + error_log(print_r($response, 1)); |
|
79 | 79 | $this->assertEquals(200, $response->getStatusCode()); |
80 | 80 | |
81 | 81 | $this->assertSelectorStartsWithOrEquals('span.count', 0, '(5)'); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $url .= '?ISO=400'; |
130 | 130 | |
131 | 131 | $response = $this->get($url); |
132 | - error_log(print_r($response,1)); |
|
132 | + error_log(print_r($response, 1)); |
|
133 | 133 | $this->assertEquals(200, $response->getStatusCode()); |
134 | 134 | |
135 | 135 | // These are less than in the no facets selected case, as expected |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $url .= '?ISO=400&ShutterSpeed=2%2F250'; |
178 | 178 | |
179 | 179 | $response = $this->get($url); |
180 | - error_log(print_r($response,1)); |
|
180 | + error_log(print_r($response, 1)); |
|
181 | 181 | $this->assertEquals(200, $response->getStatusCode()); |
182 | 182 | |
183 | 183 | // These are less than in the one facet selected case, as expected |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | public function testQueryInSearchBoxForOneFormOnly() { |
250 | 250 | $searchPageObj = $this->ElasticSearchPage2; |
251 | 251 | $url = rtrim($searchPageObj->Link(), '/'); |
252 | - $url .= "?q=Auckland&sfid=".$searchPageObj->Identifier; |
|
252 | + $url .= "?q=Auckland&sfid=" . $searchPageObj->Identifier; |
|
253 | 253 | $response = $this->get($url); |
254 | 254 | $this->assertEquals(200, $response->getStatusCode()); |
255 | 255 | $this->assertAttributeHasExactValue('#ElasticSearchForm_SearchForm_q', 'q', |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | $url .= "/similar/FlickrPhotoTO/77"; |
383 | 383 | $response = $this->get($url); |
384 | 384 | |
385 | - error_log(print_r($response,1)); |
|
385 | + error_log(print_r($response, 1)); |
|
386 | 386 | |
387 | 387 | //Title of the original is "[Texas and New Orleans, Southern Pacific Railroad Station, Sierra Blanca, Texas]" |
388 | 388 | $this->assertSelectorStartsWithOrEquals('div.searchResult a', 0, '[ and New Orleans, Southern Pacific Railroad Station, Sinton, ]'); |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | $url = rtrim($searchPageObj->Link(), '/'); |
418 | 418 | $url .= "?q=New%20Zealind&TestMode=true"; |
419 | 419 | $response = $this->get($url); |
420 | - error_log(print_r($response,1)); |
|
420 | + error_log(print_r($response, 1)); |
|
421 | 421 | $this->assertEquals(200, $response->getStatusCode()); |
422 | 422 | $this->assertSelectorStartsWithOrEquals('p.showingResultsForMsg', 0, 'Showing results for '); |
423 | 423 | $this->assertSelectorStartsWithOrEquals('p.showingResultsForMsg a', 0, 'New '); |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | //Note pages need to be published, by default fixtures only reside in Stage |
511 | 511 | $searchPageObj = $this->ElasticSearchPage2; |
512 | 512 | $url = rtrim($searchPageObj->Link(), '/'); |
513 | - $url = $url.'?q='.$searchTerm; |
|
513 | + $url = $url . '?q=' . $searchTerm; |
|
514 | 514 | $response = $this->get($url); |
515 | 515 | $this->assertEquals(200, $response->getStatusCode()); |
516 | 516 | |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | //Note pages need to be published, by default fixtures only reside in Stage |
578 | 578 | $searchPageObj = $this->ElasticSearchPage; |
579 | 579 | $url = rtrim($searchPageObj->Link(), '/'); |
580 | - $url = $url.'?q='.$searchTerm; |
|
580 | + $url = $url . '?q=' . $searchTerm; |
|
581 | 581 | $response = $this->get($url); |
582 | 582 | $this->assertEquals(200, $response->getStatusCode()); |
583 | 583 | |
@@ -708,18 +708,18 @@ discard block |
||
708 | 708 | //increase the number of results and assert that they are the same as per pages 1,2 joined |
709 | 709 | $searchPageObj->ResultsPerPage = 20; |
710 | 710 | $searchPageObj->write(); |
711 | - $searchPageObj->publish('Stage','Live'); |
|
711 | + $searchPageObj->publish('Stage', 'Live'); |
|
712 | 712 | $response3 = $this->get($firstPageURL); |
713 | 713 | } |
714 | 714 | |
715 | 715 | |
716 | 716 | private function enableHighlights() { |
717 | - foreach (SearchableField::get()->filter('Name', 'Title') as $sf) { |
|
717 | + foreach(SearchableField::get()->filter('Name', 'Title') as $sf) { |
|
718 | 718 | $sf->ShowHighlights = true; |
719 | 719 | $sf->write(); |
720 | 720 | } |
721 | 721 | |
722 | - foreach (SearchableField::get()->filter('Name', 'Content') as $sf) { |
|
722 | + foreach(SearchableField::get()->filter('Name', 'Content') as $sf) { |
|
723 | 723 | $sf->ShowHighlights = true; |
724 | 724 | $sf->write(); |
725 | 725 | } |