mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11413] Include mock class
PHPBB3-11413
This commit is contained in:
21
tests/mock/sql_insert_buffer.php
Normal file
21
tests/mock/sql_insert_buffer.php
Normal file
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
@@ -8,6 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../phpBB/includes/db/db_tools.php';
|
require_once dirname(__FILE__) . '/../../phpBB/includes/db/db_tools.php';
|
||||||
|
require_once dirname(__FILE__) . '/../mock/sql_insert_buffer.php';
|
||||||
|
|
||||||
class phpbb_notification_convert_test extends phpbb_database_test_case
|
class phpbb_notification_convert_test extends phpbb_database_test_case
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user