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:
parent
171b56b0ac
commit
b91ce7610b
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user