diff options
author | Rubén Calvo <rubencm@gmail.com> | 2018-06-19 18:31:21 +0200 |
---|---|---|
committer | Rubén Calvo <rubencm@gmail.com> | 2018-07-11 09:27:08 +0200 |
commit | f9c19013179b2a2e6a8e4de017e7d459de613142 (patch) | |
tree | bf45e6da9d262daef905e31725f4d05359b4bb04 /tests/notification | |
parent | [ticket/15342] Add again check of free space when uploading attachments (diff) | |
download | phpbb-f9c19013179b2a2e6a8e4de017e7d459de613142.tar.gz phpbb-f9c19013179b2a2e6a8e4de017e7d459de613142.tar.bz2 phpbb-f9c19013179b2a2e6a8e4de017e7d459de613142.zip |
[ticket/15342] Fix test
PHPBB3-15342
Diffstat (limited to 'tests/notification')
-rw-r--r-- | tests/notification/submit_post_base.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/notification/submit_post_base.php b/tests/notification/submit_post_base.php index db65c5df07..255d52bde0 100644 --- a/tests/notification/submit_post_base.php +++ b/tests/notification/submit_post_base.php @@ -56,6 +56,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c // Database $this->db = $this->new_dbal(); $db = $this->db; + $db_mock = $this->createMock('\phpbb\db\driver\driver_interface'); // Auth $auth = $this->createMock('\phpbb\auth\auth'); @@ -92,13 +93,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c $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(), new \phpbb\mimetype\guesser(array(new \phpbb\mimetype\extension_guesser)), $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($db, $adapter_factory_mock, '', ''); + $storage = $this->createMock('\phpbb\storage\storage'); // User $user = $this->createMock('\phpbb\user', array(), array( |