diff options
author | Rubén Calvo <rubencm@gmail.com> | 2017-08-09 22:23:23 +0200 |
---|---|---|
committer | Rubén Calvo <rubencm@gmail.com> | 2018-05-01 10:47:11 +0200 |
commit | 5111d8a3397dcbf2ed7d24655c94b04ae8056bcd (patch) | |
tree | 897ac1ded34695f492da38376dc26f584fd0b234 /tests/notification | |
parent | [ticket/15286] Fix tests (diff) | |
download | phpbb-5111d8a3397dcbf2ed7d24655c94b04ae8056bcd.tar.gz phpbb-5111d8a3397dcbf2ed7d24655c94b04ae8056bcd.tar.bz2 phpbb-5111d8a3397dcbf2ed7d24655c94b04ae8056bcd.zip |
[ticket/15286] Update tests
PHPBB3-15286
Diffstat (limited to 'tests/notification')
-rw-r--r-- | tests/notification/submit_post_base.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/notification/submit_post_base.php b/tests/notification/submit_post_base.php index baa90f29b1..5a25682b73 100644 --- a/tests/notification/submit_post_base.php +++ b/tests/notification/submit_post_base.php @@ -91,6 +91,15 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c // Language $lang = new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)); + // Storage + $adapter = new \phpbb\storage\adapter\local(new \phpbb\filesystem\filesystem(), new \FastImageSize\FastImageSize(), $phpbb_root_path); + $adapter->configure(['path' => 'files']); + $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, ''); + // User $user = $this->createMock('\phpbb\user', array(), array( $lang, @@ -125,6 +134,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c $phpbb_container->set('cache', $cache); $phpbb_container->set('text_formatter.utils', new \phpbb\textformatter\s9e\utils()); $phpbb_container->set('dispatcher', $phpbb_dispatcher); + $phpbb_container->set('storage.attachment', $storage); $phpbb_container->setParameter('core.root_path', $phpbb_root_path); $phpbb_container->setParameter('core.php_ext', $phpEx); $phpbb_container->setParameter('tables.notifications', 'phpbb_notifications'); |