subscriber = new SourceMenuSubscriber($translator); } public function testOnSourceMenuConfig():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->onSourceMenuConfigure($event)); } }