diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-09 09:57:01 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-09 09:57:01 +0200 |
commit | 462e62598d9c9ce8bb1732ffefdc52caa4abc2b3 (patch) | |
tree | 4462a43d083f847df9729ec26243cf060036fea7 /tests | |
parent | 13b13aeda19310e97d8e8a91d4adb6ad358a93c8 (diff) |
more coverage
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/config/AppConfigTest.php | 15 |
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([]); |