-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ public function testFetchPage() { | |
|
||
public function testKeywordOnly() { | ||
$page = $this->fetch_page([ 'alertsearch' => 'elephant']); | ||
$this->assertStringContainsString('What word or phrase would you like to recieve alerts about', $page); | ||
$this->assertStringContainsString('What word or phrase would you like to receive alerts about', $page); | ||
$this->assertStringContainsString('<input type="text" id="words0" name="words[]" aria-required="true" value="elephant"', $page); | ||
} | ||
|
||
|
@@ -62,7 +62,7 @@ public function testPostcodeAndKeywordWithNoSittingMP() { | |
|
||
public function testBasicKeyWordAlertsCreation() { | ||
$page = $this->fetch_page([ 'step' => 'define']); | ||
$this->assertStringContainsString('What word or phrase would you like to recieve alerts about', $page); | ||
$this->assertStringContainsString('What word or phrase would you like to receive alerts about', $page); | ||
$this->assertStringContainsString('<input type="text" id="words0" name="words[]" aria-required="true" value=""', $page); | ||
|
||
$page = $this->fetch_page([ 'step' => 'review', 'email' => '[email protected]', 'words[]' => 'fish']); | ||
|
@@ -76,7 +76,7 @@ public function testBasicKeyWordAlertsCreation() { | |
|
||
public function testMultipleKeyWordAlertsCreation() { | ||
$page = $this->fetch_page([ 'step' => 'define']); | ||
$this->assertStringContainsString('What word or phrase would you like to recieve alerts about', $page); | ||
$this->assertStringContainsString('What word or phrase would you like to receive alerts about', $page); | ||
$this->assertStringContainsString('<input type="text" id="words0" name="words[]" aria-required="true" value=""', $page); | ||
|
||
$page = $this->fetch_page([ 'step' => 'review', 'email' => '[email protected]', 'words[]' => ['fish', 'salmon']]); | ||
|
@@ -90,7 +90,7 @@ public function testMultipleKeyWordAlertsCreation() { | |
|
||
public function testMultipleKeyWordAlertsCreationLoggedIn() { | ||
$page = $this->get_page(['step' => 'define']); | ||
$this->assertStringContainsString('What word or phrase would you like to recieve alerts about', $page); | ||
$this->assertStringContainsString('What word or phrase would you like to receive alerts about', $page); | ||
$this->assertStringContainsString('<input type="text" id="words0" name="words[]" aria-required="true" value=""', $page); | ||
|
||
$page = $this->get_page([ 'step' => 'review', 'words[]' => ['fish', 'salmon']]); | ||
|
@@ -104,7 +104,7 @@ public function testMultipleKeyWordAlertsCreationLoggedIn() { | |
|
||
public function testKeyWordAndSectionAlertsCreationLoggedIn() { | ||
$page = $this->get_page(['step' => 'define']); | ||
$this->assertStringContainsString('What word or phrase would you like to recieve alerts about', $page); | ||
$this->assertStringContainsString('What word or phrase would you like to receive alerts about', $page); | ||
$this->assertStringContainsString('<input type="text" id="words0" name="words[]" aria-required="true" value=""', $page); | ||
|
||
$page = $this->get_page(['step' => 'review', 'words[]' => 'fish', 'search_section' => 'debates']); | ||
|
@@ -117,7 +117,7 @@ public function testKeyWordAndSectionAlertsCreationLoggedIn() { | |
|
||
public function testKeyWordAndSpeakerAlertsCreationLoggedIn() { | ||
$page = $this->get_page(['step' => 'define']); | ||
$this->assertStringContainsString('What word or phrase would you like to recieve alerts about', $page); | ||
$this->assertStringContainsString('What word or phrase would you like to receive alerts about', $page); | ||
$this->assertStringContainsString('<input type="text" id="words0" name="words[]" aria-required="true" value=""', $page); | ||
|
||
$page = $this->get_page(['step' => 'review', 'words[]' => 'fish', 'representative' => 'Mrs Test Current-MP']); | ||
|