[ticket/11327] Adjust tests for new reset password changes

PHPBB3-11327
This commit is contained in:
Marc Alexander 2019-08-10 22:21:14 +02:00
parent ba92e7d2d6
commit 9e772d1421
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 5 additions and 3 deletions

View file

@ -202,6 +202,8 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
'user_new' => '1',
'user_reminded' => '0',
'user_reminded_time' => '0',
'reset_token' => '',
'reset_token_expiration' => '0',
);
$this->assertEquals($expected, $this->provider->autologin());

View file

@ -20,8 +20,8 @@ class phpbb_functional_forgot_password_test extends phpbb_functional_test_case
{
global $config;
$this->add_lang('ucp');
$crawler = self::request('GET', 'ucp.php?mode=sendpassword');
$this->assertEquals($this->lang('SEND_PASSWORD'), $crawler->filter('h2')->text());
$crawler = self::request('GET', 'app.php/user/forgot_password');
$this->assertEquals($this->lang('RESET_PASSWORD'), $crawler->filter('h2')->text());
}
public function test_forgot_password_disabled()
@ -40,7 +40,7 @@ class phpbb_functional_forgot_password_test extends phpbb_functional_test_case
$this->logout();
$crawler = self::request('GET', 'ucp.php?mode=sendpassword');
$crawler = self::request('GET', 'app.php/user/forgot_password');
$this->assertContains($this->lang('UCP_PASSWORD_RESET_DISABLED', '', ''), $crawler->text());
}