|
@@ -74,11 +74,11 @@ discard block |
|
|
block discarded – undo |
|
74
|
74
|
$this->assertEquals(200, $searchPage->getStatusCode()); |
|
75
|
75
|
$url = rtrim($url, '/'); |
|
76
|
76
|
|
|
77
|
|
- $response = $this->get($url); |
|
78
|
|
- error_log(print_r($response,1)); |
|
79
|
|
- $this->assertEquals(200, $response->getStatusCode()); |
|
|
77
|
+ $response = $this->get($url); |
|
|
78
|
+ error_log(print_r($response,1)); |
|
|
79
|
+ $this->assertEquals(200, $response->getStatusCode()); |
|
80
|
80
|
|
|
81
|
|
- $this->assertSelectorStartsWithOrEquals('ul.iso span.count', 0, '(5)'); |
|
|
81
|
+ $this->assertSelectorStartsWithOrEquals('ul.iso span.count', 0, '(5)'); |
|
82
|
82
|
$this->assertSelectorStartsWithOrEquals('ul.iso span.count', 1, '(11)'); |
|
83
|
83
|
$this->assertSelectorStartsWithOrEquals('ul.iso span.count', 2, '(12)'); |
|
84
|
84
|
$this->assertSelectorStartsWithOrEquals('ul.iso span.count', 3, '(13)'); |
|
@@ -128,11 +128,11 @@ discard block |
|
|
block discarded – undo |
|
128
|
128
|
$url = rtrim($url, '/'); |
|
129
|
129
|
$url .= '?ISO=400'; |
|
130
|
130
|
|
|
131
|
|
- $response = $this->get($url); |
|
132
|
|
- error_log(print_r($response,1)); |
|
133
|
|
- $this->assertEquals(200, $response->getStatusCode()); |
|
|
131
|
+ $response = $this->get($url); |
|
|
132
|
+ error_log(print_r($response,1)); |
|
|
133
|
+ $this->assertEquals(200, $response->getStatusCode()); |
|
134
|
134
|
|
|
135
|
|
- // These are less than in the no facets selected case, as expected |
|
|
135
|
+ // These are less than in the no facets selected case, as expected |
|
136
|
136
|
$this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 0, '(2)'); |
|
137
|
137
|
$this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 1, '(1)'); |
|
138
|
138
|
$this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 2, '(2)'); |
|
@@ -176,12 +176,12 @@ discard block |
|
|
block discarded – undo |
|
176
|
176
|
$url = rtrim($url, '/'); |
|
177
|
177
|
$url .= '?ISO=400&ShutterSpeed=2%2F250'; |
|
178
|
178
|
|
|
179
|
|
- $response = $this->get($url); |
|
180
|
|
- error_log(print_r($response,1)); |
|
181
|
|
- $this->assertEquals(200, $response->getStatusCode()); |
|
|
179
|
+ $response = $this->get($url); |
|
|
180
|
+ error_log(print_r($response,1)); |
|
|
181
|
+ $this->assertEquals(200, $response->getStatusCode()); |
|
182
|
182
|
|
|
183
|
|
- // These are less than in the one facet selected case, as expected |
|
184
|
|
- $this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 0, '(1)'); |
|
|
183
|
+ // These are less than in the one facet selected case, as expected |
|
|
184
|
+ $this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 0, '(1)'); |
|
185
|
185
|
$this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 1, '(2)'); |
|
186
|
186
|
$this->assertSelectorStartsWithOrEquals('ul.aperture span.count', 0, '(1)'); |
|
187
|
187
|
$this->assertSelectorStartsWithOrEquals('ul.aperture span.count', 1, '(1)'); |
|
@@ -210,11 +210,11 @@ discard block |
|
|
block discarded – undo |
|
210
|
210
|
$url = rtrim($url, '/'); |
|
211
|
211
|
$url .= '?ISO=400&ShutterSpeed=2%2F250&Aspect=Vertical'; |
|
212
|
212
|
|
|
213
|
|
- $response = $this->get($url); |
|
214
|
|
- $this->assertEquals(200, $response->getStatusCode()); |
|
|
213
|
+ $response = $this->get($url); |
|
|
214
|
+ $this->assertEquals(200, $response->getStatusCode()); |
|
215
|
215
|
|
|
216
|
|
- // These are less than in the one facet selected case, as expected |
|
217
|
|
- $this->assertSelectorStartsWithOrEquals('span.count', 0, '(2)'); |
|
|
216
|
+ // These are less than in the one facet selected case, as expected |
|
|
217
|
+ $this->assertSelectorStartsWithOrEquals('span.count', 0, '(2)'); |
|
218
|
218
|
$this->assertSelectorStartsWithOrEquals('span.count', 1, '(1)'); |
|
219
|
219
|
$this->assertSelectorStartsWithOrEquals('span.count', 2, '(1)'); |
|
220
|
220
|
} |
|
@@ -551,13 +551,13 @@ discard block |
|
|
block discarded – undo |
|
551
|
551
|
$searchPage = $this->get($searchPageObj->URLSegment); |
|
552
|
552
|
$this->assertEquals(200, $searchPage->getStatusCode()); |
|
553
|
553
|
|
|
554
|
|
- $response = $this->submitForm("ElasticSearchForm_SearchForm", null, array( |
|
555
|
|
- 'q' => 'New Zealand' |
|
556
|
|
- )); |
|
|
554
|
+ $response = $this->submitForm("ElasticSearchForm_SearchForm", null, array( |
|
|
555
|
+ 'q' => 'New Zealand' |
|
|
556
|
+ )); |
|
557
|
557
|
|
|
558
|
558
|
$url = rtrim($url, '/'); |
|
559
|
|
- $this->assertEquals(302, $response->getStatusCode()); |
|
560
|
|
- $this->assertEquals($url . '?q=New Zealand&sfid=testwithagg', $response->getHeader('Location')); |
|
|
559
|
+ $this->assertEquals(302, $response->getStatusCode()); |
|
|
560
|
+ $this->assertEquals($url . '?q=New Zealand&sfid=testwithagg', $response->getHeader('Location')); |
|
561
|
561
|
} |
|
562
|
562
|
|
|
563
|
563
|
|