Skip to content

Commit 4242e25

Browse files
committed
Fix last tests
1 parent 6d80ada commit 4242e25

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/EventListener/RequestListenerTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public function testOnKernelRequestUserDataAndTagsAreNotSetInSubRequest(): void
405405
$listener->onKernelRequest($event->reveal());
406406

407407
$this->assertEmpty($this->getUserContext($this->currentScope));
408-
$this->assertEmpty($this->currentScope->getTags());
408+
$this->assertEmpty($this->getTagsContext($this->currentScope));
409409
}
410410

411411
private function getUserContext(Scope $scope): array
@@ -415,6 +415,14 @@ private function getUserContext(Scope $scope): array
415415

416416
return $event->getUserContext()->toArray();
417417
}
418+
419+
private function getTagsContext(Scope $scope): array
420+
{
421+
$event = new Event();
422+
$scope->applyToEvent($event, []);
423+
424+
return $event->getTagsContext()->toArray();
425+
}
418426
}
419427

420428
class ToStringUser

0 commit comments

Comments
 (0)