summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/unit/config/AppConfigTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/unit/config/AppConfigTest.php b/tests/unit/config/AppConfigTest.php
index 02a6ad8a5..95fbbd1fd 100644
--- a/tests/unit/config/AppConfigTest.php
+++ b/tests/unit/config/AppConfigTest.php
@@ -46,6 +46,21 @@ class AppConfigTest extends \PHPUnit_Framework_TestCase {
}
+ public function testGetConfig() {
+ $config = file_get_contents(__DIR__ . '/../../../appinfo/app.json');
+ $config = json_decode($config, true);
+ $this->config->loadConfig($config);
+ $config['navigation'] = [
+ 'id' => 'news',
+ 'order' => 10,
+ 'route' => 'news.page.index',
+ 'icon' => 'app.svg',
+ 'name' => 'News',
+ ];
+ $this->assertEquals($config, $this->config->getConfig());
+ }
+
+
public function testNoNavigation() {
$this->config->loadConfig([]);