diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-07-17 17:19:36 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-07-17 20:37:24 +0200 |
commit | 07ce29c081c8bbd24a5094d89346be33dda583c5 (patch) | |
tree | f2ad07531041bbc70a49ead9d3fbca4c3e0205d6 /tests/console/cron | |
parent | 42477861a45935b10285a1434f4ffaf5b199c5c2 (diff) | |
download | forums-07ce29c081c8bbd24a5094d89346be33dda583c5.tar forums-07ce29c081c8bbd24a5094d89346be33dda583c5.tar.gz forums-07ce29c081c8bbd24a5094d89346be33dda583c5.tar.bz2 forums-07ce29c081c8bbd24a5094d89346be33dda583c5.tar.xz forums-07ce29c081c8bbd24a5094d89346be33dda583c5.zip |
[ticket/12656] Pass user object into all console commands.
PHPBB3-12656
Diffstat (limited to 'tests/console/cron')
-rw-r--r-- | tests/console/cron/cron_list_test.php | 2 | ||||
-rw-r--r-- | tests/console/cron/run_test.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/console/cron/cron_list_test.php b/tests/console/cron/cron_list_test.php index f04c14e847..1059a3f221 100644 --- a/tests/console/cron/cron_list_test.php +++ b/tests/console/cron/cron_list_test.php @@ -75,7 +75,7 @@ class phpbb_console_command_cron_list_test extends phpbb_test_case public function get_command_tester() { $application = new Application(); - $application->add(new cron_list($this->cron_manager, $this->user)); + $application->add(new cron_list($this->user, $this->cron_manager)); $command = $application->find('cron:list'); $this->command_name = $command->getName(); diff --git a/tests/console/cron/run_test.php b/tests/console/cron/run_test.php index ff251cff3c..60bd74e1f0 100644 --- a/tests/console/cron/run_test.php +++ b/tests/console/cron/run_test.php @@ -148,7 +148,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case public function get_command_tester() { $application = new Application(); - $application->add(new run($this->cron_manager, $this->lock, $this->user)); + $application->add(new run($this->user, $this->cron_manager, $this->lock)); $command = $application->find('cron:run'); $this->command_name = $command->getName(); |