From 0525639329d16aa1bfe3523e0c626185d1d0ec75 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 6 Oct 2018 11:19:02 +0200 Subject: [PATCH] Created CustomizableAppConfigTest --- .../test/CustomizableAppConfigTest.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 module/Installer/test/CustomizableAppConfigTest.php 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()); + } +}