diff --git a/tests/phpunit/CiviWP/HookTest.php b/tests/phpunit/CiviWP/HookTest.php index bffafe5..ad77843 100644 --- a/tests/phpunit/CiviWP/HookTest.php +++ b/tests/phpunit/CiviWP/HookTest.php @@ -19,7 +19,7 @@ public function testFoo(): void { 'foo' => 123, ); $this->assertNotEquals($arg2['foo'], 456); - $this->assertNotEquals($arg2['hook_was_called'], 1); + $this->assertFalse(isset($arg2['hook_was_called'])); \CRM_Utils_Hook::singleton() ->invoke( 2,