TranslationDebugCommand example

$kernel
            ->expects($this->any())
            ->method('getBundles')
            ->willReturn($bundles);

        $container = new Container();
        $kernel
            ->expects($this->any())
            ->method('getContainer')
            ->willReturn($container);

        $command = new TranslationDebugCommand($translator$loader$extractor$this->translationDir.'/translations', $this->translationDir.'/templates', $transPaths$codePaths$enabledLocales);

        $application = new Application($kernel);
        $application->add($command);

        return $application->find('debug:translation');
    }

    private function getBundle($path)
    {
        $bundle = $this->createMock(BundleInterface::class);
        $bundle
            
Home | Imprint | This part of the site doesn't use cookies.