aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorLEZY Thomas <thomas.gif.91@gmail.com>2014-05-28 14:39:02 +0200
committerLEZY Thomas <thomas.gif.91@gmail.com>2014-05-28 14:49:55 +0200
commit6f279c1bf47c4c86a507acc9ea7d705dad6e9b97 (patch)
tree6d2b5be8bbc1fd3bb8b42b87018bbe40d76f1bea /phpBB
parent9761c1bf617763671308fabc569ec13d40cb6843 (diff)
downloadforums-6f279c1bf47c4c86a507acc9ea7d705dad6e9b97.tar
forums-6f279c1bf47c4c86a507acc9ea7d705dad6e9b97.tar.gz
forums-6f279c1bf47c4c86a507acc9ea7d705dad6e9b97.tar.bz2
forums-6f279c1bf47c4c86a507acc9ea7d705dad6e9b97.tar.xz
forums-6f279c1bf47c4c86a507acc9ea7d705dad6e9b97.zip
[ticket/12597] Update pull-request
Removes a useless comment. Switchs command name from cron:execute-all to cron:run-all. Replaces assertEquals by assertSame PHPBB3-12597
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/config/console.yml4
-rw-r--r--phpBB/cron.php1
-rw-r--r--phpBB/phpbb/console/command/cron/run_all.php (renamed from phpBB/phpbb/console/command/cron/execute_all.php)4
3 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/config/console.yml b/phpBB/config/console.yml
index f268c2f05e..2aa89ee0cc 100644
--- a/phpBB/config/console.yml
+++ b/phpBB/config/console.yml
@@ -46,8 +46,8 @@ services:
tags:
- { name: console.command }
- console.command.cron.execute_all:
- class: phpbb\console\command\cron\execute_all
+ console.command.cron.run_all:
+ class: phpbb\console\command\cron\run_all
arguments:
- @cron.manager
- @cron.lock_db
diff --git a/phpBB/cron.php b/phpBB/cron.php
index b35d16632a..0c1397979d 100644
--- a/phpBB/cron.php
+++ b/phpBB/cron.php
@@ -50,7 +50,6 @@ if ($cron_lock->acquire())
{
$cron = $phpbb_container->get('cron.manager');
- // If invalid task is specified, empty $run_tasks is passed to do_cron which then does nothing
$task = $cron->find_task($cron_type);
if ($task)
{
diff --git a/phpBB/phpbb/console/command/cron/execute_all.php b/phpBB/phpbb/console/command/cron/run_all.php
index f7157f4d3a..39b3e0c616 100644
--- a/phpBB/phpbb/console/command/cron/execute_all.php
+++ b/phpBB/phpbb/console/command/cron/run_all.php
@@ -12,7 +12,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
-class execute_all extends \phpbb\console\command\command
+class run_all extends \phpbb\console\command\command
{
/** @var \phpbb\cron\manager */
protected $cron_manager;
@@ -47,7 +47,7 @@ class execute_all extends \phpbb\console\command\command
protected function configure()
{
$this
- ->setName('cron:execute-all')
+ ->setName('cron:run-all')
->setDescription($this->user->lang('CLI_DESCR_CRON_EXECUTE_ALL'))
;
}