|
@@ 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 |
|
|
|
@@ 421-426 (lines=6) @@
|
| 418 |
|
$this->assertEquals(200, $response->getStatusCode()); |
| 419 |
|
|
| 420 |
|
// results vary slightly due to sharding, hence check for a string instead of absolute results |
| 421 |
|
while ($ctr < 18) { |
| 422 |
|
$this->assertSelectorContains('div.searchResult a', $ctr, 'New', true); |
| 423 |
|
$ctr++; |
| 424 |
|
$this->assertSelectorStartsWithOrEquals('div.searchResult a', $ctr, 'Similar'); |
| 425 |
|
$ctr++; |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
//Only the word New will match, Zealind does not exist. Hence 'New York', 'New Orelans' etc |
| 429 |
|
$this->assertSelectorStartsWithOrEquals('div.searchResult a', 0, 'Image taken from page 59 of \'Illustrated Handbook to Plymouth, Stonehouse & Devonport, with a new map ... New and enlarged edition\''); |