Contao\CoreBundle\Test\Command\AutomatorCommandTest::testOutput PHP Method

testOutput() public method

Tests the output.
public testOutput ( )
    public function testOutput()
    {
        $command = new AutomatorCommand('contao:automator');
        $command->setApplication($this->getApplication());
        $command->setFramework($this->mockContaoFramework());
        $tester = new CommandTester($command);
        /** @var QuestionHelper $helper */
        $helper = $command->getHelper('question');
        $helper->setInputStream($this->getStreamFromInput("\n"));
        $code = $tester->execute(['command' => $command->getName()]);
        $this->assertEquals(0, $code);
        $this->assertContains('Please select a task:', $tester->getDisplay());
        $this->assertContains('[10]', $tester->getDisplay());
    }