Contao\CoreBundle\Test\Command\VersionCommandTest::testOutputWithoutVersion PHP 메소드

testOutputWithoutVersion() 공개 메소드

Tests the output without the version set.
    public function testOutputWithoutVersion()
    {
        $container = new ContainerBuilder();
        $container->setParameter('kernel.packages', []);
        $command = new VersionCommand('contao:version');
        $command->setContainer($container);
        $tester = new CommandTester($command);
        $code = $tester->execute([]);
        $this->assertEquals(1, $code);
        $this->assertEquals('', $tester->getDisplay());
    }