mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-01 12:05:37 +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;
|
global $config;
|
||||||
$this->add_lang('ucp');
|
$this->add_lang('ucp');
|
||||||
$crawler = $this->request('GET', 'ucp.php?mode=sendpassword');
|
$crawler = $this->request('GET', 'ucp.php?mode=sendpassword');
|
||||||
|
$this->assert_response_success();
|
||||||
$this->assertEquals($this->lang('SEND_PASSWORD'), $crawler->filter('h2')->text());
|
$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->admin_login();
|
||||||
$this->add_lang('ucp');
|
$this->add_lang('ucp');
|
||||||
$crawler = $this->request('GET', 'adm/index.php?sid=' . $this->sid . '&i=acp_board&mode=security');
|
$crawler = $this->request('GET', 'adm/index.php?sid=' . $this->sid . '&i=acp_board&mode=security');
|
||||||
|
//$this->assert_response_success();
|
||||||
|
|
||||||
$form = $crawler->selectButton('Submit')->form();
|
$form = $crawler->selectButton('Submit')->form();
|
||||||
$values = $form->getValues();
|
$values = $form->getValues();
|
||||||
@ -37,7 +39,7 @@ class phpbb_functional_forgot_password_test extends phpbb_functional_test_case
|
|||||||
$this->logout();
|
$this->logout();
|
||||||
|
|
||||||
$crawler = $this->request('GET', 'ucp.php?mode=sendpassword');
|
$crawler = $this->request('GET', 'ucp.php?mode=sendpassword');
|
||||||
|
$this->assert_response_success();
|
||||||
$this->assertContains($this->lang('UCP_PASSWORD_RESET_DISABLED', '', ''), $crawler->text());
|
$this->assertContains($this->lang('UCP_PASSWORD_RESET_DISABLED', '', ''), $crawler->text());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user