diff --git a/tests/Entity/Traits/JsonSerializeTraitTest.php b/tests/Entity/Traits/JsonSerializeTraitTest.php
index <HASH>..<HASH> 100644
--- a/tests/Entity/Traits/JsonSerializeTraitTest.php
+++ b/tests/Entity/Traits/JsonSerializeTraitTest.php
@@ -99,7 +99,7 @@ class JsonSerializeTraitTest extends TestCase
 
         $entity->foo = 'bar';
         $entity->color = 'blue';
-        $expected = (object)['foo' => 'bar', 'color' => 'blue'];
+        $expected = (object)['foo' => 'bar', 'color' => 'blue', 'event' => null];
 
         $result = $entity->jsonSerialize();
 
@@ -142,6 +142,8 @@ class JsonSerializeTraitTest extends TestCase
         return new class() implements DynamicInterface {
             use JsonSerializeTrait;
 
+            public $event;
+
             public function trigger(string $event, $payload = null)
             {
                 if (!isset($this->event)) {
Fix scrutinizer failure condition for JsonSerializeTrait tests