mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15342] Fix tests
PHPBB3-15342
This commit is contained in:
parent
171b56b0ac
commit
b91ce7610b
3 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ class phpbb_attachment_delete_test extends \phpbb_database_test_case
|
||||||
$adapter_factory_mock->expects($this->any())
|
$adapter_factory_mock->expects($this->any())
|
||||||
->method('get')
|
->method('get')
|
||||||
->willReturn($adapter);
|
->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->dispatcher = new \phpbb_mock_event_dispatcher();
|
||||||
$this->attachment_delete = new \phpbb\attachment\delete($this->config, $this->db, $this->dispatcher, $this->resync, $this->storage);
|
$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())
|
$adapter_factory_mock->expects($this->any())
|
||||||
->method('get')
|
->method('get')
|
||||||
->willReturn($adapter);
|
->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
|
// 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));
|
$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())
|
$adapter_factory_mock->expects($this->any())
|
||||||
->method('get')
|
->method('get')
|
||||||
->willReturn($adapter);
|
->willReturn($adapter);
|
||||||
$storage = new \phpbb\storage\storage($adapter_factory_mock, '');
|
$storage = new \phpbb\storage\storage($db, $adapter_factory_mock, '', '');
|
||||||
|
|
||||||
// User
|
// User
|
||||||
$user = $this->createMock('\phpbb\user', array(), array(
|
$user = $this->createMock('\phpbb\user', array(), array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue