Removed CLI language param from installation

This commit is contained in:
Alejandro Celaya
2018-11-18 19:55:23 +01:00
parent d4d65bdf37
commit 64737b741b
3 changed files with 3 additions and 18 deletions

View File

@@ -41,9 +41,8 @@ class LanguageConfigCustomizerTest extends TestCase
$this->assertTrue($config->hasLanguage());
$this->assertEquals([
'DEFAULT' => 'en',
'CLI' => 'en',
], $config->getLanguage());
$choice->shouldHaveBeenCalledTimes(2);
$choice->shouldHaveBeenCalledOnce();
}
/**
@@ -53,15 +52,11 @@ class LanguageConfigCustomizerTest extends TestCase
{
$choice = $this->io->choice(Argument::cetera())->willReturn('es');
$config = new CustomizableAppConfig();
$config->setLanguage([
'DEFAULT' => 'en',
]);
$this->plugin->process($this->io->reveal(), $config);
$this->assertEquals([
'DEFAULT' => 'en',
'CLI' => 'es',
'DEFAULT' => 'es',
], $config->getLanguage());
$choice->shouldHaveBeenCalledOnce();
}
@@ -76,14 +71,12 @@ class LanguageConfigCustomizerTest extends TestCase
$config = new CustomizableAppConfig();
$config->setLanguage([
'DEFAULT' => 'es',
'CLI' => 'es',
]);
$this->plugin->process($this->io->reveal(), $config);
$this->assertEquals([
'DEFAULT' => 'es',
'CLI' => 'es',
], $config->getLanguage());
$choice->shouldNotHaveBeenCalled();
}