summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-09 09:57:01 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-09 09:57:01 +0200
commit462e62598d9c9ce8bb1732ffefdc52caa4abc2b3 (patch)
tree4462a43d083f847df9729ec26243cf060036fea7
parent13b13aeda19310e97d8e8a91d4adb6ad358a93c8 (diff)
more coverage
-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([]);