Skip to content

Commit

Permalink
Merge pull request #25299 from braders/dynamic-properties-queue-tests
Browse files Browse the repository at this point in the history
[REF][PHP8.2] Avoid dynamic properties in queue tests
  • Loading branch information
seamuslee001 authored Jan 9, 2023
2 parents 9756aa5 + 3ea3989 commit a7c3919
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/phpunit/CRM/Queue/Queue/SqlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ class CRM_Queue_Queue_SqlTest extends CiviUnitTestCase {

use \Civi\Test\QueueTestTrait;

/**
* @var CRM_Queue_Service
*/
private $queueService;

/**
* @var CRM_Queue_Queue
*/
private $queue;

/* ----------------------- Queue providers ----------------------- */

/* Define a list of queue providers which should be tested */
Expand Down
10 changes: 10 additions & 0 deletions tests/phpunit/CRM/Queue/QueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ class CRM_Queue_QueueTest extends CiviUnitTestCase {

use \Civi\Test\QueueTestTrait;

/**
* @var CRM_Queue_Service
*/
private $queueService;

/**
* @var CRM_Queue_Queue
*/
private $queue;

/* ----------------------- Queue providers ----------------------- */

/* Define a list of queue providers which should be tested */
Expand Down
10 changes: 10 additions & 0 deletions tests/phpunit/CRM/Queue/RunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ class CRM_Queue_RunnerTest extends CiviUnitTestCase {

use \Civi\Test\QueueTestTrait;

/**
* @var CRM_Queue_Service
*/
private $queueService;

/**
* @var CRM_Queue_Queue
*/
private $queue;

public function setUp(): void {
parent::setUp();
$this->queueService = CRM_Queue_Service::singleton(TRUE);
Expand Down

0 comments on commit a7c3919

Please sign in to comment.