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;
    }