mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-30 02:59:29 +02:00
[ticket/10325] add assert_response_success in test
PHPBB3-10325
This commit is contained in:
parent
27aa5e7b71
commit
a5b5e4b31d
@ -17,6 +17,7 @@ class phpbb_functional_forgot_password_test extends phpbb_functional_test_case
|
||||
global $config;
|
||||
$this->add_lang('ucp');
|
||||
$crawler = $this->request('GET', 'ucp.php?mode=sendpassword');
|
||||
$this->assert_response_success();
|
||||
$this->assertEquals($this->lang('SEND_PASSWORD'), $crawler->filter('h2')->text());
|
||||
}
|
||||
|
||||
@ -26,6 +27,7 @@ class phpbb_functional_forgot_password_test extends phpbb_functional_test_case
|
||||
$this->admin_login();
|
||||
$this->add_lang('ucp');
|
||||
$crawler = $this->request('GET', 'adm/index.php?sid=' . $this->sid . '&i=acp_board&mode=security');
|
||||
//$this->assert_response_success();
|
||||
|
||||
$form = $crawler->selectButton('Submit')->form();
|
||||
$values = $form->getValues();
|
||||
@ -37,7 +39,7 @@ class phpbb_functional_forgot_password_test extends phpbb_functional_test_case
|
||||
$this->logout();
|
||||
|
||||
$crawler = $this->request('GET', 'ucp.php?mode=sendpassword');
|
||||
|
||||
$this->assert_response_success();
|
||||
$this->assertContains($this->lang('UCP_PASSWORD_RESET_DISABLED', '', ''), $crawler->text());
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user