diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-03-14 14:42:48 +0100 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2018-10-18 18:51:16 +0200 |
commit | 101d3b763308efe823d03c09bd0a4a109d19fc26 (patch) | |
tree | b68e25e318006513b62145edfc8286057336fd92 /tests/test_framework/phpbb_functional_test_case.php | |
parent | 7e003bf687b340bba822fc512bfb2b2c8235a6ad (diff) | |
download | forums-101d3b763308efe823d03c09bd0a4a109d19fc26.tar forums-101d3b763308efe823d03c09bd0a4a109d19fc26.tar.gz forums-101d3b763308efe823d03c09bd0a4a109d19fc26.tar.bz2 forums-101d3b763308efe823d03c09bd0a4a109d19fc26.tar.xz forums-101d3b763308efe823d03c09bd0a4a109d19fc26.zip |
[ticket/10432] Don't require username when user forgets password
PHPBB3-10432
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 12a296a4bf..d4856f954a 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -550,9 +550,10 @@ class phpbb_functional_test_case extends phpbb_test_case * Creates a new user with limited permissions * * @param string $username Also doubles up as the user's password + * @param string $email User email (defaults to nobody@example.com) * @return int ID of created user */ - protected function create_user($username) + protected function create_user($username, $email = 'nobody@example.com') { // Required by unique_id global $config; @@ -604,7 +605,7 @@ class phpbb_functional_test_case extends phpbb_test_case $user_row = array( 'username' => $username, 'group_id' => 2, - 'user_email' => 'nobody@example.com', + 'user_email' => $email, 'user_type' => 0, 'user_lang' => 'en', 'user_timezone' => 'UTC', |