N98\Magento\Command\LocalConfig\GenerateCommandTest::testErrorIsPrintedIfConfigFileExists PHP Метод

testErrorIsPrintedIfConfigFileExists() публичный Метод

    public function testErrorIsPrintedIfConfigFileExists()
    {
        touch($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->assertFileExists($this->configFile);
        $this->assertContains(sprintf('local.xml file already exists in folder "%s/app/etc"', dirname($this->configFile)), $commandTester->getDisplay());
    }