Skip to content
Snippets Groups Projects
Unverified Commit 81e4aa09 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #21206 from demeritcowboy/extmgrmodtest

[NFC] CRM_Extension_Manager_ModuleTest - use ?? instead of error-suppression operator
parents 3d8b2995 f69c8f04
Branches
Tags
No related merge requests found
......@@ -225,8 +225,8 @@ class CRM_Extension_Manager_ModuleTest extends CiviUnitTestCase {
public function assertHookCounts($module, $counts) {
global $_test_extension_manager_moduletest_counts;
foreach ($counts as $key => $expected) {
$actual = @$_test_extension_manager_moduletest_counts[$module][$key];
$this->assertEquals($expected, $actual,
$actual = $_test_extension_manager_moduletest_counts[$module][$key] ?? 0;
$this->assertSame($expected, $actual,
sprintf('Expected %d call(s) to hook_civicrm_%s -- found %d', $expected, $key, $actual)
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment