mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[ticket/12597] Fix wrong global variable name
$pathEx changed to $phpEx PHPBB3-12597
This commit is contained in:
parent
43fbb84cc3
commit
01dba249d7
1 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
|
||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
global $db, $config, $phpbb_root_path, $pathEx;
|
global $db, $config, $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
$db = $this->db = $this->new_dbal();
|
$db = $this->db = $this->new_dbal();
|
||||||
$config = $this->config = new \phpbb\config\config(array('cron_lock' => '0'));
|
$config = $this->config = new \phpbb\config\config(array('cron_lock' => '0'));
|
||||||
|
@ -48,7 +48,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
|
||||||
$tasks = array(
|
$tasks = array(
|
||||||
$this->task,
|
$this->task,
|
||||||
);
|
);
|
||||||
$this->cron_manager = new \phpbb\cron\manager($tasks, $phpbb_root_path, $pathEx);
|
$this->cron_manager = new \phpbb\cron\manager($tasks, $phpbb_root_path, $phbEx);
|
||||||
|
|
||||||
$this->assertSame('0', $config['cron_lock']);
|
$this->assertSame('0', $config['cron_lock']);
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
|
||||||
{
|
{
|
||||||
$tasks = array(
|
$tasks = array(
|
||||||
);
|
);
|
||||||
$this->cron_manager = new \phpbb\cron\manager($tasks, $phpbb_root_path, $pathEx);
|
$this->cron_manager = new \phpbb\cron\manager($tasks, $phpbb_root_path, $phpEx);
|
||||||
$command_tester = $this->get_command_tester();
|
$command_tester = $this->get_command_tester();
|
||||||
$exit_status = $command_tester->execute(array('command' => $this->command_name));
|
$exit_status = $command_tester->execute(array('command' => $this->command_name));
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
|
||||||
{
|
{
|
||||||
$tasks = array(
|
$tasks = array(
|
||||||
);
|
);
|
||||||
$this->cron_manager = new \phpbb\cron\manager($tasks, $phpbb_root_path, $pathEx);
|
$this->cron_manager = new \phpbb\cron\manager($tasks, $phpbb_root_path, $phpEx);
|
||||||
$command_tester = $this->get_command_tester();
|
$command_tester = $this->get_command_tester();
|
||||||
$exit_status = $command_tester->execute(array('command' => $this->command_name, '--verbose' => true));
|
$exit_status = $command_tester->execute(array('command' => $this->command_name, '--verbose' => true));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue