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

[ticket/15233] Amend tests for avatar helper

PHPBB3-15233
This commit is contained in:
mrgoldy
2019-12-17 20:28:59 +01:00
committed by Marc Alexander
parent 34aaf5e6d2
commit a9b63a4724
9 changed files with 31 additions and 8 deletions

View File

@@ -69,7 +69,11 @@ abstract class phpbb_console_user_base extends phpbb_database_test_case
));
$user->data['user_email'] = '';
$this->user_loader = new \phpbb\user_loader($db, $phpbb_root_path, $phpEx, USERS_TABLE);
$avatar_helper = $this->getMockBuilder('\phpbb\avatar\helper')
->disableOriginalConstructor()
->getMock();
$this->user_loader = new \phpbb\user_loader($avatar_helper, $db, $phpbb_root_path, $phpEx, USERS_TABLE);
$driver_helper = new \phpbb\passwords\driver\helper($this->config);
$passwords_drivers = array(