From 462e62598d9c9ce8bb1732ffefdc52caa4abc2b3 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 9 Oct 2014 09:57:01 +0200 Subject: more coverage --- tests/unit/config/AppConfigTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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([]); -- cgit v1.2.3