Skip to content

Commit 85588eb

Browse files
committed
Use correct assertion to compare strings
1 parent c2fe6ab commit 85588eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/startpage_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function test_set_default_startpage()
6767

6868
// Confirm foo/bar path exists and displays content
6969
$crawler = self::request('GET', 'app.php/foo/template?sid=' . $this->sid, array(), false);
70-
$this->assertContains("I am a variable", $crawler->filter('#content')->text());
70+
$this->assertStringContainsString("I am a variable", $crawler->filter('#content')->text());
7171

7272
// switch to edit mode and confirm we have option to set start page
7373
$crawler = self::request('GET', 'app.php/foo/template?edit_mode=1&sid=' . $this->sid, array(), false);
@@ -81,7 +81,7 @@ public function test_set_default_startpage()
8181

8282
// Go to index.php and Confirm it now displays the contents of foo/bar controller
8383
$crawler = self::request('GET', 'index.php?edit_mode=1&sid=' . $this->sid, array(), false);
84-
$this->assertContains("I am a variable", $crawler->filter('#content')->text());
84+
$this->assertStringContainsString("I am a variable", $crawler->filter('#content')->text());
8585

8686
// Confirm Remove Start Page is now available to us
8787
$this->assertContainsLang('REMOVE_STARTPAGE', $crawler->filter('#startpage-toggler')->text());

0 commit comments

Comments
 (0)