mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[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
This commit is contained in:
parent
488bd1a1b1
commit
4c62cb4989
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue