1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-25 18:13:28 +01:00

[ticket/15342] Fix tests

PHPBB3-15342
This commit is contained in:
Rubén Calvo 2018-05-17 02:02:12 +02:00
parent 171b56b0ac
commit b91ce7610b
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ class phpbb_attachment_delete_test extends \phpbb_database_test_case
$adapter_factory_mock->expects($this->any())
->method('get')
->willReturn($adapter);
$this->storage = new \phpbb\storage\storage($adapter_factory_mock, '');
$this->storage = new \phpbb\storage\storage($db, $adapter_factory_mock, '', '');
$this->dispatcher = new \phpbb_mock_event_dispatcher();
$this->attachment_delete = new \phpbb\attachment\delete($this->config, $this->db, $this->dispatcher, $this->resync, $this->storage);
}

View File

@ -41,7 +41,7 @@ class phpbb_functions_user_delete_user_test extends phpbb_database_test_case
$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, '', '');
// Works as a workaround for tests
$phpbb_container->set('attachment.manager', new \phpbb\attachment\delete($config, $db, new \phpbb_mock_event_dispatcher(), new \phpbb\attachment\resync($db), $storage));

View File

@ -98,7 +98,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c
$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, '', '');
// User
$user = $this->createMock('\phpbb\user', array(), array(