Skip to content

Commit

Permalink
Test usability fix
Browse files Browse the repository at this point in the history
Having the dummy data in the past causes debugging pain
  • Loading branch information
eileenmcnaughton committed Apr 4, 2022
1 parent c4b081e commit d037332
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/phpunit/CRM/Utils/TokenConsistencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
6 changes: 3 additions & 3 deletions tests/phpunit/CiviTest/CiviUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d037332

Please sign in to comment.