From cac401563591f85204b352e548499db84c81c6a3 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 9 Dec 2024 17:41:21 +0000 Subject: [PATCH] fix spelling in alerts page test --- tests/AlertsPageTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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']);