1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/14561] Use the user loader where appropriate

PHPBB3-14561
This commit is contained in:
Matt Friedman
2016-03-27 10:24:12 -07:00
parent ed0f151d86
commit 4b789c0418
6 changed files with 29 additions and 40 deletions

View File

@@ -40,6 +40,7 @@ class phpbb_console_user_activate_test extends phpbb_console_user_base
$this->language,
$this->log,
$this->notifications,
$this->user_loader,
$this->phpbb_root_path,
$this->php_ext
));

View File

@@ -25,6 +25,7 @@ abstract class phpbb_console_user_base extends phpbb_database_test_case
protected $passwords_manager;
protected $command_name;
protected $question;
protected $user_loader;
protected $phpbb_root_path;
protected $php_ext;
@@ -70,6 +71,8 @@ abstract class phpbb_console_user_base extends phpbb_database_test_case
'\phpbb\datetime'
));
$this->user_loader = new \phpbb\user_loader($db, $phpbb_root_path, $phpEx, USERS_TABLE);
$driver_helper = new \phpbb\passwords\driver\helper($this->config);
$passwords_drivers = array(
'passwords.driver.bcrypt_2y' => new \phpbb\passwords\driver\bcrypt_2y($this->config, $driver_helper),

View File

@@ -27,6 +27,7 @@ class phpbb_console_user_delete_test extends phpbb_console_user_base
$this->db,
$this->language,
$this->log,
$this->user_loader,
$this->phpbb_root_path,
$this->php_ext
));