From 44e020fd2b178e1c2fb30ec63db93ce4cf8662ce Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 5 Oct 2022 16:40:30 -0400 Subject: [PATCH] fix name --- CRM/Queue/BAO/Queue.php | 2 +- tests/phpunit/CRM/Queue/QueueTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Queue/BAO/Queue.php b/CRM/Queue/BAO/Queue.php index bbd3cadc46..665c9908eb 100644 --- a/CRM/Queue/BAO/Queue.php +++ b/CRM/Queue/BAO/Queue.php @@ -41,7 +41,7 @@ class CRM_Queue_BAO_Queue extends CRM_Queue_DAO_Queue implements \Civi\Core\Hook return [ 'active' => ts('Active'), // ^^ The queue is active. It will execute tasks at the nearest convenience. - 'complete' => ts('Complete'), + 'completed' => ts('Complete'), // ^^ The queue will no longer execute tasks - because no new tasks are expected. Everything is complete. 'draft' => ts('Draft'), // ^^ The queue is not ready to execute tasks - because we are still curating a list of tasks. diff --git a/tests/phpunit/CRM/Queue/QueueTest.php b/tests/phpunit/CRM/Queue/QueueTest.php index 3f1c6ac5b4..426687c98b 100644 --- a/tests/phpunit/CRM/Queue/QueueTest.php +++ b/tests/phpunit/CRM/Queue/QueueTest.php @@ -97,7 +97,7 @@ class CRM_Queue_QueueTest extends CiviUnitTestCase { $this->assertTrue($q1 instanceof CRM_Queue_Queue_Sql); $this->assertDBQuery('active', "SELECT status FROM civicrm_queue WHERE name = 'test/valid/default'"); - foreach (['draft', 'active', 'complete', 'aborted'] as $n => $exampleStatus) { + foreach (['draft', 'active', 'completed', 'aborted'] as $n => $exampleStatus) { $q1 = Civi::queue("test/valid/$n", [ 'type' => 'Sql', 'runner' => 'task', -- 2.25.1