Skip to content
Snippets Groups Projects
Commit 2ab8aba9 authored by DaveD's avatar DaveD
Browse files

avoid error-supression operator

parent 5aed1881
Branches
Tags
No related merge requests found
......@@ -230,8 +230,8 @@ class CRM_Extension_Manager_ModuleUpgTest extends CiviUnitTestCase {
public function assertHookCounts($module, $counts) {
global $_test_extension_manager_moduleupgtest_counts;
foreach ($counts as $key => $expected) {
$actual = @$_test_extension_manager_moduleupgtest_counts[$module][$key];
$this->assertEquals($expected, $actual,
$actual = $_test_extension_manager_moduleupgtest_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