aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions_user/delete_user_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-09-23 09:38:35 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-09-23 09:38:35 +0200
commit10b6399d300b05fb0a1f66ccbdb6fc8a2889ebbc (patch)
tree70b20482ca75a5435ffa2e2dc7910ebcefa3a2f1 /tests/functions_user/delete_user_test.php
parenteeeb62b43381e087e09ab75cd5c6b4764d8338fb (diff)
downloadforums-10b6399d300b05fb0a1f66ccbdb6fc8a2889ebbc.tar
forums-10b6399d300b05fb0a1f66ccbdb6fc8a2889ebbc.tar.gz
forums-10b6399d300b05fb0a1f66ccbdb6fc8a2889ebbc.tar.bz2
forums-10b6399d300b05fb0a1f66ccbdb6fc8a2889ebbc.tar.xz
forums-10b6399d300b05fb0a1f66ccbdb6fc8a2889ebbc.zip
[ticket/10729] Fix setup of the tests for 3.1
PHPBB3-10729
Diffstat (limited to 'tests/functions_user/delete_user_test.php')
-rw-r--r--tests/functions_user/delete_user_test.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/functions_user/delete_user_test.php b/tests/functions_user/delete_user_test.php
index 9a7805a819..c728e6c122 100644
--- a/tests/functions_user/delete_user_test.php
+++ b/tests/functions_user/delete_user_test.php
@@ -10,30 +10,34 @@
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
require_once dirname(__FILE__) . '/../../phpBB/includes/functions_user.php';
require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_tools.php';
-require_once dirname(__FILE__) . '/../mock/null_cache.php';
class phpbb_functions_user_delete_user_test extends phpbb_database_test_case
{
- /** @var \dbal */
+ /** @var \phpbb\db\driver\driver_interface */
protected $db;
public function getDataSet()
{
- return $this->createXMLDataSet(dirname(__FILE__).'/fixtures/delete_user.xml');
+ return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/delete_user.xml');
}
protected function setUp()
{
parent::setUp();
- global $cache, $config, $db;
+ global $cache, $config, $db, $phpbb_dispatcher, $phpbb_container;
$db = $this->db = $this->new_dbal();
- $config = array(
+ $config = new \phpbb\config\config(array(
'load_online_time' => 5,
- 'search_type' => 'fulltext_mysql',
- );
+ 'search_type' => '\phpbb\search\fulltext_mysql',
+ ));
+ set_config(false, false, false, $config);
+ set_config_count(false, false, false, $config);
$cache = new phpbb_mock_null_cache();
+ $phpbb_dispatcher = new phpbb_mock_event_dispatcher();
+ $phpbb_container = new phpbb_mock_container_builder();
+ $phpbb_container->set('notification_manager', new phpbb_mock_notification_manager());
}
public function first_last_post_data()