public function testOutput()
{
$container = new ContainerBuilder();
$container->setParameter('kernel.root_dir', $this->getRootDir() . '/app');
$container->setParameter('kernel.logs_dir', $this->getRootDir() . '/var/logs');
$container->setParameter('contao.upload_path', 'app');
$container->set('contao.resource_finder', new ResourceFinder($this->getRootDir() . '/vendor/contao/test-bundle/Resources/contao'));
$command = new SymlinksCommand('contao:symlinks');
$command->setContainer($container);
$tester = new CommandTester($command);
$code = $tester->execute([]);
$display = $tester->getDisplay();
$this->assertEquals(0, $code);
$this->assertContains('web/system/modules/foobar/assets', $display);
$this->assertContains('system/modules/foobar/assets', $display);
$this->assertContains('web/system/modules/foobar/html', $display);
$this->assertContains('system/modules/foobar/html', $display);
$this->assertContains('web/system/modules/foobar/html/foo', $display);
$this->assertContains('Skipped because system/modules/foobar/html will be symlinked.', $display);
$this->assertContains('system/themes/flexible', $display);
$this->assertContains('vendor/contao/test-bundle/Resources/contao/themes/flexible', $display);
$this->assertContains('web/assets', $display);
$this->assertContains('assets', $display);
$this->assertContains('web/system/themes', $display);
$this->assertContains('system/themes', $display);
$this->assertContains('system/logs', $display);
$this->assertContains('var/logs', $display);
}