aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/forgot_password_test.php
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-04-30 22:29:20 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-04-30 22:29:20 +0530
commita5b5e4b31da6f91e73b09b3c2a50d1a79e8c108d (patch)
treee53f2286d231a9b95d7e66805e0a5701c4591bcd /tests/functional/forgot_password_test.php
parent27aa5e7b713b58eb0afb8d92e684a6868eb080ce (diff)
downloadforums-a5b5e4b31da6f91e73b09b3c2a50d1a79e8c108d.tar
forums-a5b5e4b31da6f91e73b09b3c2a50d1a79e8c108d.tar.gz
forums-a5b5e4b31da6f91e73b09b3c2a50d1a79e8c108d.tar.bz2
forums-a5b5e4b31da6f91e73b09b3c2a50d1a79e8c108d.tar.xz
forums-a5b5e4b31da6f91e73b09b3c2a50d1a79e8c108d.zip
[ticket/10325] add assert_response_success in test
PHPBB3-10325
Diffstat (limited to 'tests/functional/forgot_password_test.php')
-rw-r--r--tests/functional/forgot_password_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/functional/forgot_password_test.php b/tests/functional/forgot_password_test.php
index 3ae74ed1e9..14dfae3d7c 100644
--- a/tests/functional/forgot_password_test.php
+++ b/tests/functional/forgot_password_test.php
@@ -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());
}