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

testArgument() public method

Tests an argument.
public testArgument ( )
    public function testArgument()
    {
        $command = new AutomatorCommand('contao:automator');
        $command->setApplication($this->getApplication());
        $command->setFramework($this->mockContaoFramework());
        $tester = new CommandTester($command);
        $code = $tester->execute(['command' => $command->getName(), 'task' => 'purgeTempFolder']);
        $this->assertEquals(0, $code);
    }