diff --git a/module/Installer/test/CustomizableAppConfigTest.php b/module/Installer/test/CustomizableAppConfigTest.php new file mode 100644 index 00000000..c630d719 --- /dev/null +++ b/module/Installer/test/CustomizableAppConfigTest.php @@ -0,0 +1,40 @@ +exchangeArray([ + 'app_options' => [ + 'disable_track_param' => null, + ], + 'translator' => [ + 'locale' => 'es', + ], + ]); + + $this->assertFalse($config->hasDatabase()); + $this->assertFalse($config->hasUrlShortener()); + $this->assertTrue($config->hasApp()); + $this->assertTrue($config->hasLanguage()); + $this->assertEquals([ + ApplicationConfigCustomizer::DISABLE_TRACK_PARAM => null, + ], $config->getApp()); + $this->assertEquals([ + LanguageConfigCustomizer::DEFAULT_LANG => 'es', + ], $config->getLanguage()); + } +}