mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/17519] Adapt wrapper test for master
PHPBB-17519
This commit is contained in:
@@ -23,11 +23,8 @@ class phpbb_cron_wrapper_test extends phpbb_template_template_test_case
|
|||||||
{
|
{
|
||||||
global $phpbb_root_path;
|
global $phpbb_root_path;
|
||||||
|
|
||||||
// Test the engine can be used
|
|
||||||
$this->setup_engine([], $phpbb_root_path . 'styles/all/template');
|
$this->setup_engine([], $phpbb_root_path . 'styles/all/template');
|
||||||
|
|
||||||
$this->template->clear_cache();
|
|
||||||
|
|
||||||
global $phpbb_filesystem;
|
global $phpbb_filesystem;
|
||||||
|
|
||||||
$phpbb_filesystem = new \phpbb\filesystem\filesystem();
|
$phpbb_filesystem = new \phpbb\filesystem\filesystem();
|
||||||
@@ -38,8 +35,6 @@ class phpbb_cron_wrapper_test extends phpbb_template_template_test_case
|
|||||||
$this->wrapper = new \phpbb\cron\task\wrapper(
|
$this->wrapper = new \phpbb\cron\task\wrapper(
|
||||||
$this->task,
|
$this->task,
|
||||||
$this->routing_helper,
|
$this->routing_helper,
|
||||||
'/phpbb/',
|
|
||||||
'php',
|
|
||||||
$this->template
|
$this->template
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -62,8 +57,6 @@ class phpbb_cron_wrapper_test extends phpbb_template_template_test_case
|
|||||||
$this->wrapper = new \phpbb\cron\task\wrapper(
|
$this->wrapper = new \phpbb\cron\task\wrapper(
|
||||||
$this->task,
|
$this->task,
|
||||||
$this->routing_helper,
|
$this->routing_helper,
|
||||||
'/phpbb/',
|
|
||||||
'php',
|
|
||||||
$this->template
|
$this->template
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -100,8 +93,6 @@ class phpbb_cron_wrapper_test extends phpbb_template_template_test_case
|
|||||||
$this->wrapper = new \phpbb\cron\task\wrapper(
|
$this->wrapper = new \phpbb\cron\task\wrapper(
|
||||||
$this->task,
|
$this->task,
|
||||||
$this->routing_helper,
|
$this->routing_helper,
|
||||||
'/phpbb/',
|
|
||||||
'php',
|
|
||||||
$this->template
|
$this->template
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -127,8 +118,6 @@ class phpbb_cron_wrapper_test extends phpbb_template_template_test_case
|
|||||||
$this->wrapper = new \phpbb\cron\task\wrapper(
|
$this->wrapper = new \phpbb\cron\task\wrapper(
|
||||||
$this->task,
|
$this->task,
|
||||||
$this->routing_helper,
|
$this->routing_helper,
|
||||||
'/phpbb/',
|
|
||||||
'php',
|
|
||||||
$this->template
|
$this->template
|
||||||
);
|
);
|
||||||
$this->task->expects($this->once())
|
$this->task->expects($this->once())
|
||||||
|
Reference in New Issue
Block a user