Contao\CoreBundle\Test\Command\InstallCommandTest::testInstallationWithCustomPaths PHP Method

testInstallationWithCustomPaths() public method

Tests the installation with a custom files and images directory.
    public function testInstallationWithCustomPaths()
    {
        $container = new ContainerBuilder();
        $container->setParameter('kernel.root_dir', $this->getRootDir() . '/app');
        $container->setParameter('contao.upload_path', 'files_test');
        $container->setParameter('contao.image.target_path', 'assets/images_test');
        $command = new InstallCommand('contao:install');
        $command->setContainer($container);
        $tester = new CommandTester($command);
        $code = $tester->execute([]);
        $display = $tester->getDisplay();
        $this->assertEquals(0, $code);
        $this->assertContains(' * files_test', $display);
        $this->assertContains(' * assets/images_test', $display);
    }