subscriber = new SourceMenuSubscriber($translator); } public function testOnSourceMenuConfig():void{ $factory = $this->createMock(FactoryInterface::class); $item = $this->createMock(ItemInterface::class); $request = $this->createMock(RequestStack::class); $event = new MenuEvent($factory, $item, $request); $this->assertNull($this->subscriber->onSourceMenuConfigure($event)); } }