diff --git a/tests/AlertsPageTest.php b/tests/AlertsPageTest.php index 91a2b15f24..6f70c18d48 100644 --- a/tests/AlertsPageTest.php +++ b/tests/AlertsPageTest.php @@ -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('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('fetch_page([ 'step' => 'review', 'email' => 'test@example.org', '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('fetch_page([ 'step' => 'review', 'email' => 'test@example.org', '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('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('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('get_page(['step' => 'review', 'words[]' => 'fish', 'representative' => 'Mrs Test Current-MP']);