aboutsummaryrefslogtreecommitdiffstats
path: root/tests/avatar/manager_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-01-02 17:14:26 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-01-02 17:16:32 +0100
commitb3d64b3b59234e545a75a6a7bbdda2b77cb5be84 (patch)
tree198750f84c99679b0ec9a5fec5c43ed194865971 /tests/avatar/manager_test.php
parent917c864bbf51309da4c8bda7ad03e1e00afc0764 (diff)
downloadforums-b3d64b3b59234e545a75a6a7bbdda2b77cb5be84.tar
forums-b3d64b3b59234e545a75a6a7bbdda2b77cb5be84.tar.gz
forums-b3d64b3b59234e545a75a6a7bbdda2b77cb5be84.tar.bz2
forums-b3d64b3b59234e545a75a6a7bbdda2b77cb5be84.tar.xz
forums-b3d64b3b59234e545a75a6a7bbdda2b77cb5be84.zip
[ticket/14387] Fix avatar tests after adding get_config_name method
PHPBB3-14387
Diffstat (limited to 'tests/avatar/manager_test.php')
-rw-r--r--tests/avatar/manager_test.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/avatar/manager_test.php b/tests/avatar/manager_test.php
index 9b97fa6a68..344eef38ff 100644
--- a/tests/avatar/manager_test.php
+++ b/tests/avatar/manager_test.php
@@ -64,10 +64,13 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case
->method('get_name')
->will($this->returnValue('avatar.driver.foobar'));
// barfoo driver can't be mocked with constructor arguments
- $this->avatar_barfoo = $this->getMock('\phpbb\avatar\driver\barfoo', array('get_name'));
+ $this->avatar_barfoo = $this->getMock('\phpbb\avatar\driver\barfoo', array('get_name', 'get_config_name'));
$this->avatar_barfoo->expects($this->any())
->method('get_name')
->will($this->returnValue('avatar.driver.barfoo'));
+ $this->avatar_barfoo->expects($this->any())
+ ->method('get_config_name')
+ ->will($this->returnValue('barfoo'));
$avatar_drivers = array($this->avatar_foobar, $this->avatar_barfoo);
foreach ($this->avatar_drivers() as $driver)