get(TokenStorageInterface::class); $this->subscriber = new UserMenuSubscriber($tokenStorage, $translator); } public function testOnUserMenuConfigure(): void { $factory = new MenuFactory(); $item = new MenuItem('test', $factory); $request = new Request(); $request->attributes->set('id', 123); $requests = new RequestStack(); $requests->push($request); $event = new MenuEvent($factory, $item, $requests); $this->assertNull($this->subscriber->onUserMenuConfigure($event)); } }