@@ -74,11 +74,11 @@ discard block |
||
| 74 | 74 | $this->assertEquals(200, $searchPage->getStatusCode()); |
| 75 | 75 | $url = rtrim($url, '/'); |
| 76 | 76 | |
| 77 | - $response = $this->get($url); |
|
| 77 | + $response = $this->get($url); |
|
| 78 | 78 | |
| 79 | - $this->assertEquals(200, $response->getStatusCode()); |
|
| 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 |
||
| 128 | 128 | $url = rtrim($url, '/'); |
| 129 | 129 | $url .= '?ISO=400'; |
| 130 | 130 | |
| 131 | - $response = $this->get($url); |
|
| 131 | + $response = $this->get($url); |
|
| 132 | 132 | |
| 133 | - $this->assertEquals(200, $response->getStatusCode()); |
|
| 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,11 +176,11 @@ discard block |
||
| 176 | 176 | $url = rtrim($url, '/'); |
| 177 | 177 | $url .= '?ISO=400&ShutterSpeed=2%2F250'; |
| 178 | 178 | |
| 179 | - $response = $this->get($url); |
|
| 180 | - $this->assertEquals(200, $response->getStatusCode()); |
|
| 179 | + $response = $this->get($url); |
|
| 180 | + $this->assertEquals(200, $response->getStatusCode()); |
|
| 181 | 181 | |
| 182 | - // These are less than in the one facet selected case, as expected |
|
| 183 | - $this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 0, '(1)'); |
|
| 182 | + // These are less than in the one facet selected case, as expected |
|
| 183 | + $this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 0, '(1)'); |
|
| 184 | 184 | $this->assertSelectorStartsWithOrEquals('ul.focal_length span.count', 1, '(2)'); |
| 185 | 185 | $this->assertSelectorStartsWithOrEquals('ul.aperture span.count', 0, '(1)'); |
| 186 | 186 | $this->assertSelectorStartsWithOrEquals('ul.aperture span.count', 1, '(1)'); |
@@ -207,11 +207,11 @@ discard block |
||
| 207 | 207 | $url = rtrim($url, '/'); |
| 208 | 208 | $url .= '?ISO=400&ShutterSpeed=2%2F250&Aspect=Vertical'; |
| 209 | 209 | |
| 210 | - $response = $this->get($url); |
|
| 211 | - $this->assertEquals(200, $response->getStatusCode()); |
|
| 210 | + $response = $this->get($url); |
|
| 211 | + $this->assertEquals(200, $response->getStatusCode()); |
|
| 212 | 212 | |
| 213 | - // These are less than in the one facet selected case, as expected |
|
| 214 | - $this->assertSelectorStartsWithOrEquals('span.count', 0, '(2)'); |
|
| 213 | + // These are less than in the one facet selected case, as expected |
|
| 214 | + $this->assertSelectorStartsWithOrEquals('span.count', 0, '(2)'); |
|
| 215 | 215 | $this->assertSelectorStartsWithOrEquals('span.count', 1, '(1)'); |
| 216 | 216 | $this->assertSelectorStartsWithOrEquals('span.count', 2, '(1)'); |
| 217 | 217 | } |
@@ -542,13 +542,13 @@ discard block |
||
| 542 | 542 | $searchPage = $this->get($searchPageObj->URLSegment); |
| 543 | 543 | $this->assertEquals(200, $searchPage->getStatusCode()); |
| 544 | 544 | |
| 545 | - $response = $this->submitForm("ElasticSearchForm_SearchForm", null, array( |
|
| 546 | - 'q' => 'New Zealand' |
|
| 547 | - )); |
|
| 545 | + $response = $this->submitForm("ElasticSearchForm_SearchForm", null, array( |
|
| 546 | + 'q' => 'New Zealand' |
|
| 547 | + )); |
|
| 548 | 548 | |
| 549 | 549 | $url = rtrim($url, '/'); |
| 550 | - $this->assertEquals(302, $response->getStatusCode()); |
|
| 551 | - $this->assertEquals($url . '?q=New Zealand&sfid=testwithagg', $response->getHeader('Location')); |
|
| 550 | + $this->assertEquals(302, $response->getStatusCode()); |
|
| 551 | + $this->assertEquals($url . '?q=New Zealand&sfid=testwithagg', $response->getHeader('Location')); |
|
| 552 | 552 | } |
| 553 | 553 | |
| 554 | 554 | |
@@ -150,15 +150,15 @@ |
||
| 150 | 150 | |
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | - *Assert that the indexth matching css node has a prefix as expected |
|
| 154 | - * |
|
| 155 | - * Note: characters are stripped from the content; make sure that your assertions take this into account. |
|
| 156 | - * |
|
| 157 | - * @param string $selector A basic CSS selector, e.g. 'li.jobs h3' |
|
| 158 | - * @param array|string $expectedMatches The content of at least one of the matched tags |
|
| 159 | - * @throws PHPUnit_Framework_AssertionFailedError |
|
| 160 | - * @return boolean |
|
| 161 | - */ |
|
| 153 | + *Assert that the indexth matching css node has a prefix as expected |
|
| 154 | + * |
|
| 155 | + * Note: characters are stripped from the content; make sure that your assertions take this into account. |
|
| 156 | + * |
|
| 157 | + * @param string $selector A basic CSS selector, e.g. 'li.jobs h3' |
|
| 158 | + * @param array|string $expectedMatches The content of at least one of the matched tags |
|
| 159 | + * @throws PHPUnit_Framework_AssertionFailedError |
|
| 160 | + * @return boolean |
|
| 161 | + */ |
|
| 162 | 162 | public function assertSelectorContains($selector, $index, $expectedClause) { |
| 163 | 163 | $items = $this->cssParser()->getBySelector($selector); |
| 164 | 164 | |