1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-29 19:20:23 +02:00

[ticket/14838] Add simple test for fetch_attachments method

PHPBB3-14838
This commit is contained in:
Marc Alexander
2016-12-25 23:43:49 +01:00
parent 7cad25e4cb
commit c0882c1d34
2 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
/**
* Board wide feed (aka overall feed)
*
* This will give you the newest {$this->num_items} posts
* from the whole board.
*/
class phpbb_feed_attachments_mock_feed extends \phpbb\feed\attachments_base
{
public $topic_ids = array();
public $post_ids = array();
function get_sql()
{
parent::fetch_attachments($this->post_ids, $this->topic_ids);
return true;
}
}