diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-08-14 09:10:05 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-09-09 08:27:42 +0200 |
commit | 57de89628622a80fcb386c0d95724fe4c6148929 (patch) | |
tree | 481b83e609fe57214662ef8e9c36c5ec0fba1c9e /tests/avatar/manager_test.php | |
parent | 0a98fc256157c2d4861693e693731f7b2d7a9ac7 (diff) | |
download | forums-57de89628622a80fcb386c0d95724fe4c6148929.tar forums-57de89628622a80fcb386c0d95724fe4c6148929.tar.gz forums-57de89628622a80fcb386c0d95724fe4c6148929.tar.bz2 forums-57de89628622a80fcb386c0d95724fe4c6148929.tar.xz forums-57de89628622a80fcb386c0d95724fe4c6148929.zip |
[ticket/13904] Remove unneeded parameters from avatars and fix tests
PHPBB3-13904
Diffstat (limited to 'tests/avatar/manager_test.php')
-rw-r--r-- | tests/avatar/manager_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/avatar/manager_test.php b/tests/avatar/manager_test.php index 9804869c81..faf6976028 100644 --- a/tests/avatar/manager_test.php +++ b/tests/avatar/manager_test.php @@ -73,6 +73,8 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case ->will($this->returnValue('avatar.driver.barfoo')); $avatar_drivers = array($this->avatar_foobar, $this->avatar_barfoo); + $files_factory = new \phpbb\files\factory($phpbb_container); + foreach ($this->avatar_drivers() as $driver) { if ($driver !== 'upload') @@ -81,7 +83,7 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case } else { - $cur_avatar = $this->getMock('\phpbb\avatar\driver\\' . $driver, array('get_name'), array($this->config, $phpbb_root_path, $phpEx, $filesystem, $path_helper, $guesser, $dispatcher, $cache)); + $cur_avatar = $this->getMock('\phpbb\avatar\driver\\' . $driver, array('get_name'), array($this->config, $phpbb_root_path, $phpEx, $path_helper, $dispatcher, $files_factory, $cache)); } $cur_avatar->expects($this->any()) ->method('get_name') |