1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[ticket/15342] Track storage files

PHPBB3-15342
This commit is contained in:
Rubén Calvo
2018-02-11 11:33:04 +01:00
parent cd84919f1a
commit a02fa1170b
6 changed files with 199 additions and 8 deletions

View File

@@ -38,11 +38,12 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case
$filesystem = new \phpbb\filesystem\filesystem();
$adapter = new \phpbb\storage\adapter\local($filesystem, new \FastImageSize\FastImageSize(), new \phpbb\mimetype\guesser(array(new \phpbb\mimetype\extension_guesser)), $phpbb_root_path);
$adapter->configure(['path' => 'images/avatars/upload']);
$db = $this->createMock('\phpbb\db\driver\driver_interface');
$adapter_factory_mock = $this->createMock('\phpbb\storage\adapter_factory');
$adapter_factory_mock->expects($this->any())
->method('get')
->willReturn($adapter);
$storage = new \phpbb\storage\storage($adapter_factory_mock, '');
$storage = new \phpbb\storage\storage($db, $adapter_factory_mock, '', '');
// Prepare dependencies for avatar manager and driver
$this->config = new \phpbb\config\config(array());