mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 22:28:46 +01:00
[ticket/14387] Fix avatar tests after adding get_config_name method
PHPBB3-14387
This commit is contained in:
parent
917c864bbf
commit
b3d64b3b59
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user