mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/15342] Fix test
PHPBB3-15342
This commit is contained in:
@@ -30,6 +30,8 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case
|
||||
global $phpbb_root_path, $phpEx;
|
||||
|
||||
// Mock phpbb_container
|
||||
|
||||
$cache = $this->createMock('\phpbb\cache\driver\driver_interface');
|
||||
$phpbb_container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface');
|
||||
$phpbb_container->expects($this->any())
|
||||
->method('get')
|
||||
@@ -43,11 +45,10 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case
|
||||
$adapter_factory_mock->expects($this->any())
|
||||
->method('get')
|
||||
->willReturn($adapter);
|
||||
$storage = new \phpbb\storage\storage($db, $adapter_factory_mock, '', '');
|
||||
$storage = new \phpbb\storage\storage($db, $cache, $adapter_factory_mock, '', '');
|
||||
|
||||
// Prepare dependencies for avatar manager and driver
|
||||
$this->config = new \phpbb\config\config(array());
|
||||
$cache = $this->createMock('\phpbb\cache\driver\driver_interface');
|
||||
$path_helper = new \phpbb\path_helper(
|
||||
new \phpbb\symfony_request(
|
||||
new phpbb_mock_request()
|
||||
|
Reference in New Issue
Block a user