From 1e18441375b44e726cde2d6ef03caf4857e84884 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Mon, 29 May 2023 16:06:53 +0100 Subject: [PATCH] Replace property with variable in OrderTest --- tests/phpunit/api/v3/OrderTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/api/v3/OrderTest.php b/tests/phpunit/api/v3/OrderTest.php index 971cea59d8..e6751dc824 100644 --- a/tests/phpunit/api/v3/OrderTest.php +++ b/tests/phpunit/api/v3/OrderTest.php @@ -513,7 +513,7 @@ class api_v3_OrderTest extends CiviUnitTestCase { */ public function testAddOrderForParticipant(): void { $event = $this->eventCreate(); - $this->_eventId = $event['id']; + $eventId = $event['id']; $p = [ 'contact_id' => $this->_individualId, 'receive_date' => '2010-01-20', @@ -538,7 +538,7 @@ class api_v3_OrderTest extends CiviUnitTestCase { 'line_item' => $lineItems, 'params' => [ 'contact_id' => $this->_individualId, - 'event_id' => $this->_eventId, + 'event_id' => $eventId, 'role_id' => 1, 'register_date' => '2007-07-21 00:00:00', 'source' => 'Online Event Registration: API Testing', @@ -578,7 +578,7 @@ class api_v3_OrderTest extends CiviUnitTestCase { 'line_item' => $lineItems, 'params' => [ 'contact_id' => $this->individualCreate(), - 'event_id' => $this->_eventId, + 'event_id' => $eventId, 'role_id' => 1, 'register_date' => '2007-07-21 00:00:00', 'source' => 'Online Event Registration: API Testing', -- 2.25.1