Skip to content

Commit

Permalink
ByTypeTest - More consistent results on PHPUnit 10
Browse files Browse the repository at this point in the history
Tests seem to execute in a different order, leading to different ID#s
  • Loading branch information
totten committed Dec 19, 2024
1 parent 725025c commit 02cd1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/CRM/Contribute/ActionMapping/ByTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static function createTestCases(): array {
* Create a contribution record for Alice with type "Member Dues".
*/
public function addAliceDues(): void {
$campaignID = $this->campaignCreate([
$campaignID = $this->ids['Campaign']['big'] = $this->campaignCreate([
'title' => 'Campaign',
'name' => 'big_campaign',
]);
Expand Down Expand Up @@ -373,7 +373,7 @@ public function testTokenRendering(): void {
'fee_amount = €5.00',
'paid_amount = €100.00',
'balance_amount = €0.00',
'campaign_id = 1',
'campaign_id = ' . $this->ids['Campaign']['big'],
'campaign name = big_campaign',
'campaign label = Campaign',
'receipt text = Thank you!',
Expand Down

0 comments on commit 02cd1de

Please sign in to comment.