From 6c2e954ae5581492c527be6c85489cccc5a28982 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Fri, 31 Mar 2023 16:48:05 -0700 Subject: [PATCH] Fix tests Signed-off-by: Matt Friedman --- tests/functional/visibility_test.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/functional/visibility_test.php b/tests/functional/visibility_test.php index c391374..7a2f826 100644 --- a/tests/functional/visibility_test.php +++ b/tests/functional/visibility_test.php @@ -41,12 +41,12 @@ public function test_acp_pages() // Test password strength on ACP Account settings page $crawler = self::request('GET', "adm/index.php?i=acp_users&mode=overview&sid=$this->sid"); - $this->assertNotContainsLang('PS_WEAK', $crawler->filter('html')->text()); + $this->assertStringNotContainsString('Very\u0020Strong\u0020\uD83D\uDE00', $crawler->filter('html')->text()); $form = $crawler->selectButton($this->lang('SUBMIT'))->form(); $data = array('username' => 'admin'); $form->setValues($data); $crawler = self::submit($form); - $this->assertContainsLang('PS_WEAK', $crawler->filter('html')->text()); + $this->assertStringContainsString('Very\u0020Strong\u0020\uD83D\uDE00', $crawler->filter('html')->text()); } public function test_ucp_pages() @@ -55,20 +55,20 @@ public function test_ucp_pages() // Test password strength on UCP Account settings page $crawler = self::request('GET', 'ucp.php?i=ucp_profile&mode=reg_details'); - $this->assertContainsLang('PS_WEAK', $crawler->filter('html')->text()); + $this->assertStringContainsString('Very\u0020Strong\u0020\uD83D\uDE00', $crawler->filter('html')->text()); // Test password strength on UCP registration page $this->logout(); $crawler = self::request('GET', 'ucp.php?mode=register'); $form = $crawler->selectButton($this->lang('AGREE'))->form(); $crawler = self::submit($form); - $this->assertContainsLang('PS_WEAK', $crawler->filter('html')->text()); + $this->assertStringContainsString('Very\u0020Strong\u0020\uD83D\uDE00', $crawler->filter('html')->text()); } public function test_other_pages() { // Test password strength NOT on index page $crawler = self::request('GET', 'index.php'); - $this->assertNotContainsLang('PS_WEAK', $crawler->filter('html')->text()); + $this->assertStringNotContainsString('Very\u0020Strong\u0020\uD83D\uDE00', $crawler->filter('html')->text()); } }