aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/forgot_password_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-02-11 08:24:12 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-02-11 08:24:49 +0100
commit4c62cb4989fbf8d2fa9f5d60839311ea5b4c5f68 (patch)
treee123c1c330e0afac6733a1d106ee9fbc94614735 /tests/functional/forgot_password_test.php
parent488bd1a1b1e47cbcf570b5b7f2bf1ae77840888f (diff)
downloadforums-4c62cb4989fbf8d2fa9f5d60839311ea5b4c5f68.tar
forums-4c62cb4989fbf8d2fa9f5d60839311ea5b4c5f68.tar.gz
forums-4c62cb4989fbf8d2fa9f5d60839311ea5b4c5f68.tar.bz2
forums-4c62cb4989fbf8d2fa9f5d60839311ea5b4c5f68.tar.xz
forums-4c62cb4989fbf8d2fa9f5d60839311ea5b4c5f68.zip
[ticket/12183] Make sure to undo changes to config in forgot_password_test
The forgot_password_test disables the password reset functionalty but doesn't enable it again afterwards. PHPBB3-12183
Diffstat (limited to 'tests/functional/forgot_password_test.php')
-rw-r--r--tests/functional/forgot_password_test.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/forgot_password_test.php b/tests/functional/forgot_password_test.php
index 906224efbb..3b6fd15d02 100644
--- a/tests/functional/forgot_password_test.php
+++ b/tests/functional/forgot_password_test.php
@@ -41,4 +41,17 @@ class phpbb_functional_forgot_password_test extends phpbb_functional_test_case
}
+ public function tearDown()
+ {
+ $this->login();
+ $this->admin_login();
+
+ $crawler = self::request('GET', 'adm/index.php?sid=' . $this->sid . '&i=acp_board&mode=security');
+
+ // Enable allow_password_reset again after test
+ $form = $crawler->selectButton('Submit')->form(array(
+ 'config[allow_password_reset]' => 1,
+ ));
+ $crawler = self::submit($form);
+ }
}