Skip to content

Commit

Permalink
Merge pull request #24091 from seamuslee001/phpunit_warning_fix
Browse files Browse the repository at this point in the history
[NFC] Resolve phpunit warning about using assertContains on strings
  • Loading branch information
seamuslee001 authored Jul 30, 2022
2 parents 6ca5ac8 + 5dd6c93 commit 2a6cdef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/CRM/Member/Import/Parser/MembershipTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function testImportOverriddenMembershipButWithoutStatus(): void {
$this->fail('validation error expected.');
}
catch (CRM_Core_Exception $e) {
$this->assertContains('Required parameter missing: Status', $e->getMessage());
$this->assertStringContainsString('Required parameter missing: Status', $e->getMessage());
return;
}

Expand Down

0 comments on commit 2a6cdef

Please sign in to comment.