1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/17153] Use routing helper instead of controller helper in upload avatar

The controller helper class is not needed, routing helper brings all the
needed functionality already.

PHPBB3-17153
This commit is contained in:
Marc Alexander
2023-07-01 19:31:00 +02:00
parent 4db4a5571b
commit aac7d5a99c
4 changed files with 12 additions and 14 deletions

View File

@@ -58,6 +58,7 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case
$phpbb_dispatcher = $dispatcher;
$controller_helper = $this->createMock('\phpbb\controller\helper');
$routing_helper = $this->createMock('\phpbb\routing\helper');
// $this->avatar_foobar will be needed later on
$this->avatar_foobar = $this->getMockBuilder('\phpbb\avatar\driver\foobar')
@@ -96,7 +97,7 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case
{
$cur_avatar = $this->getMockBuilder('\phpbb\avatar\driver\\' . $driver)
->setMethods(array('get_name'))
->setConstructorArgs(array($this->config, $controller_helper, $phpbb_root_path, $phpEx, $storage, $path_helper, $dispatcher, $files_factory, $php_ini))
->setConstructorArgs(array($this->config, $phpbb_root_path, $phpEx, $storage, $path_helper, $routing_helper, $dispatcher, $files_factory, $php_ini))
->getMock();
}
$cur_avatar->expects($this->any())