mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-19 23:32:02 +02:00
Merge pull request #4614 from marc1706/ticket/14838
[ticket/14838] Add missing method to mock'ed feed
This commit is contained in:
commit
655d40679d
@ -31,7 +31,12 @@ class phpbb_feed_attachments_base_test extends phpbb_database_test_case
|
||||
|
||||
$this->filesystem = new \phpbb\filesystem();
|
||||
$config = new \phpbb\config\config(array());
|
||||
$user = new \phpbb\user('\phpbb\datetime');
|
||||
$user = new \phpbb\user(
|
||||
new \phpbb\language\language(
|
||||
new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)
|
||||
),
|
||||
'\phpbb\datetime'
|
||||
);
|
||||
$feed_helper = new \phpbb\feed\helper($config, $user, $phpbb_root_path, $phpEx);
|
||||
$db = $this->new_dbal();
|
||||
$cache = new \phpbb_mock_cache();
|
||||
|
@ -28,4 +28,9 @@ class phpbb_feed_attachments_mock_feed extends \phpbb\feed\attachments_base
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function adjust_item(&$item_row, &$row)
|
||||
{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user