N98\Magento\Command\Database\DumpCommandTest::getCommand PHP 메소드

getCommand() 보호된 메소드

protected getCommand ( ) : Command
리턴 Symfony\Component\Console\Command\Command
    protected function getCommand()
    {
        $dumpCommand = new DumpCommand();
        if (!$dumpCommand->isEnabled()) {
            $this->markTestSkipped('DumpCommand is not enabled.');
        }
        $application = $this->getApplication();
        $application->add($dumpCommand);
        $command = $this->getApplication()->find('db:dump');
        return $command;
    }