diff options
author | Andy Chase <asperous2@gmail.com> | 2013-07-22 11:29:36 -0700 |
---|---|---|
committer | Andy Chase <asperous2@gmail.com> | 2013-07-22 11:29:36 -0700 |
commit | e2a769ac79ad408e94935c97a5fc1325fb838c4f (patch) | |
tree | 5f56bbc9d9290f49a6c88987561f345df49f8a3c /tests/mock | |
parent | cc1aef47fb4f5d37415436c62067ad2dcde768bb (diff) | |
parent | b71038486e067daf0c608d73aabeb60a56e86840 (diff) | |
download | forums-e2a769ac79ad408e94935c97a5fc1325fb838c4f.tar forums-e2a769ac79ad408e94935c97a5fc1325fb838c4f.tar.gz forums-e2a769ac79ad408e94935c97a5fc1325fb838c4f.tar.bz2 forums-e2a769ac79ad408e94935c97a5fc1325fb838c4f.tar.xz forums-e2a769ac79ad408e94935c97a5fc1325fb838c4f.zip |
Merge branch 'develop' into ticket/11620
Diffstat (limited to 'tests/mock')
-rw-r--r-- | tests/mock/search.php | 23 | ||||
-rw-r--r-- | tests/mock/sql_insert_buffer.php | 21 |
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/mock/search.php b/tests/mock/search.php new file mode 100644 index 0000000000..6739719216 --- /dev/null +++ b/tests/mock/search.php @@ -0,0 +1,23 @@ +<?php +/** +* +* @package testing +* @copyright (c) 2012 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +/** +*/ +class phpbb_mock_search +{ + + public function __construct($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user) + { + } + + public function index_remove($post_ids, $poster_ids, $forum_ids) + { + } +} + diff --git a/tests/mock/sql_insert_buffer.php b/tests/mock/sql_insert_buffer.php new file mode 100644 index 0000000000..ba09aa8d7f --- /dev/null +++ b/tests/mock/sql_insert_buffer.php @@ -0,0 +1,21 @@ +<?php +/** +* +* @package testing +* @copyright (c) 2013 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +class phpbb_mock_sql_insert_buffer extends phpbb_db_sql_insert_buffer +{ + public function flush() + { + return (sizeof($this->buffer)) ? true : false; + } + + public function get_buffer() + { + return $this->buffer; + } +} |