File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ public function testOnKernelRequestUserDataAndTagsAreNotSetInSubRequest(): void
405
405
$ listener ->onKernelRequest ($ event ->reveal ());
406
406
407
407
$ this ->assertEmpty ($ this ->getUserContext ($ this ->currentScope ));
408
- $ this ->assertEmpty ($ this ->currentScope -> getTags ( ));
408
+ $ this ->assertEmpty ($ this ->getTagsContext ( $ this -> currentScope ));
409
409
}
410
410
411
411
private function getUserContext (Scope $ scope ): array
@@ -415,6 +415,14 @@ private function getUserContext(Scope $scope): array
415
415
416
416
return $ event ->getUserContext ()->toArray ();
417
417
}
418
+
419
+ private function getTagsContext (Scope $ scope ): array
420
+ {
421
+ $ event = new Event ();
422
+ $ scope ->applyToEvent ($ event , []);
423
+
424
+ return $ event ->getTagsContext ()->toArray ();
425
+ }
418
426
}
419
427
420
428
class ToStringUser
You can’t perform that action at this time.
0 commit comments