mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/16549] Move from assert[Not]Contains to assertString[Not]ContainsString
PHPBB3-16549
This commit is contained in:
@@ -34,7 +34,7 @@ class phpbb_functional_acp_users_test extends phpbb_functional_test_case
|
||||
$crawler = self::request('GET', "adm/index.php?i=users&mode=overview&u=$user_id&sid={$this->sid}");
|
||||
$form = $crawler->filter('#user_delete')->selectButton($this->lang('SUBMIT'))->form();
|
||||
$crawler = self::submit($form);
|
||||
$this->assertContains($this->lang('CANNOT_REMOVE_FOUNDER'), $this->get_content());
|
||||
$this->assertStringContainsString($this->lang('CANNOT_REMOVE_FOUNDER'), $this->get_content());
|
||||
}
|
||||
|
||||
protected function make_founder($user_id)
|
||||
@@ -44,6 +44,6 @@ class phpbb_functional_acp_users_test extends phpbb_functional_test_case
|
||||
$data = array('user_founder' => '1');
|
||||
$form->setValues($data);
|
||||
$crawler = self::submit($form);
|
||||
$this->assertContains($this->lang('USER_OVERVIEW_UPDATED'), $this->get_content());
|
||||
$this->assertStringContainsString($this->lang('USER_OVERVIEW_UPDATED'), $this->get_content());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user