N98\Magento\Command\LocalConfig\GenerateCommandTest::testErrorIsPrintedIfConfigTemplateNotExists PHP Method

testErrorIsPrintedIfConfigTemplateNotExists() public method

    public function testErrorIsPrintedIfConfigTemplateNotExists()
    {
        unlink(sprintf('%s/local.xml.template', dirname($this->configFile)));
        $command = $this->getApplication()->find('local-config:generate');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'db-host' => 'my_db_host', 'db-user' => 'my_db_user', 'db-pass' => 'my_db_pass', 'db-name' => 'my_db_name', 'session-save' => 'my_session_save', 'admin-frontname' => 'my_admin_frontname', 'encryption-key' => 'key123456789'));
        $this->assertContains(sprintf('File %s/local.xml.template does not exist', dirname($this->configFile)), $commandTester->getDisplay());
    }