diff --git a/tests/phpunit/CRM/Utils/TokenConsistencyTest.php b/tests/phpunit/CRM/Utils/TokenConsistencyTest.php index 2bdb4fd99fc1..6b68dd019859 100644 --- a/tests/phpunit/CRM/Utils/TokenConsistencyTest.php +++ b/tests/phpunit/CRM/Utils/TokenConsistencyTest.php @@ -954,6 +954,8 @@ protected function createEventAndParticipant(): void { ])->execute()->first()['id']; $this->ids['event'][0] = $this->eventCreate([ 'description' => 'event description', + 'end_date' => 20081023, + 'registration_end_date' => 20081015, $this->getCustomFieldName('text') => 'my field', 'loc_block_id' => $locationBlockID, ])['id']; diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 82c7f0a90957..bcb7849dc78c 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -864,7 +864,7 @@ public function participantCreate(array $params = []) { $this->ids['Contact']['participant'] = $params['contact_id'] = $this->individualCreate(); } if (empty($params['event_id'])) { - $event = $this->eventCreate(); + $event = $this->eventCreate(['end_date' => 20081023, 'registration_end_date' => 20081015]); $params['event_id'] = $event['id']; } $defaults = [ @@ -1119,10 +1119,10 @@ public function eventCreate(array $params = []): array { 'event_type_id' => 1, 'is_public' => 1, 'start_date' => 20081021, - 'end_date' => 20081023, + 'end_date' => '+ 1 month', 'is_online_registration' => 1, 'registration_start_date' => 20080601, - 'registration_end_date' => 20081015, + 'registration_end_date' => '+ 1 month', 'max_participants' => 100, 'event_full_text' => 'Sorry! We are already full', 'is_monetary' => 0,