diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-10-17 20:49:10 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-10-17 20:49:10 +0200 |
commit | 3f0ce78a25e433287e36bb92ff2c531e5a5b4743 (patch) | |
tree | 21b34d679551247e9565adb81af5705091e5c4be /tests/avatar/manager_test.php | |
parent | e1fc008d15b14b383934c6a0291105377a852b53 (diff) | |
download | forums-3f0ce78a25e433287e36bb92ff2c531e5a5b4743.tar forums-3f0ce78a25e433287e36bb92ff2c531e5a5b4743.tar.gz forums-3f0ce78a25e433287e36bb92ff2c531e5a5b4743.tar.bz2 forums-3f0ce78a25e433287e36bb92ff2c531e5a5b4743.tar.xz forums-3f0ce78a25e433287e36bb92ff2c531e5a5b4743.zip |
[ticket/11930] Fix tests after adding phpbb\path_helper to avatar drivers
PHPBB3-11930
Diffstat (limited to 'tests/avatar/manager_test.php')
-rw-r--r-- | tests/avatar/manager_test.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/avatar/manager_test.php b/tests/avatar/manager_test.php index ba1fb04b33..ccb6a1085c 100644 --- a/tests/avatar/manager_test.php +++ b/tests/avatar/manager_test.php @@ -25,9 +25,17 @@ class phpbb_avatar_manager_test extends PHPUnit_Framework_TestCase $config = new \phpbb\config\config(array()); $request = $this->getMock('\phpbb\request\request'); $cache = $this->getMock('\phpbb\cache\driver\driver_interface'); + $path_helper = new \phpbb\path_helper( + new \phpbb\symfony_request( + new phpbb_mock_request() + ), + new \phpbb\filesystem(), + $this->phpbb_root_path, + $this->phpEx + ); // $this->avatar_foobar will be needed later on - $this->avatar_foobar = $this->getMock('\phpbb\avatar\driver\foobar', array('get_name'), array($config, $phpbb_root_path, $phpEx, $cache)); + $this->avatar_foobar = $this->getMock('\phpbb\avatar\driver\foobar', array('get_name'), array($config, $phpbb_root_path, $phpEx, $cache, $path_helper)); $this->avatar_foobar->expects($this->any()) ->method('get_name') ->will($this->returnValue('avatar.driver.foobar')); @@ -40,7 +48,7 @@ class phpbb_avatar_manager_test extends PHPUnit_Framework_TestCase foreach ($this->avatar_drivers() as $driver) { - $cur_avatar = $this->getMock('\phpbb\avatar\driver\\' . $driver, array('get_name'), array($config, $phpbb_root_path, $phpEx, $cache)); + $cur_avatar = $this->getMock('\phpbb\avatar\driver\\' . $driver, array('get_name'), array($config, $phpbb_root_path, $phpEx, $cache, $path_helper)); $cur_avatar->expects($this->any()) ->method('get_name') ->will($this->returnValue('avatar.driver.' . $driver)); |