diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-05 04:14:14 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-05 04:14:14 +0300 |
commit | 06cab3b79141d490cdd586dc9f855f04145919bd (patch) | |
tree | 47ced780b83c5e8327baca1ea2b035dbe04e0a85 /tests | |
parent | c27c6ea672a8937cc93e61b1db17b268e327b420 (diff) |
Add test for navigation entry loading
Routes are not loaded, so we just make sure we get an exception
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/appinfo/AppTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration/appinfo/AppTest.php b/tests/integration/appinfo/AppTest.php index bf4bcf31..b49e90ad 100644 --- a/tests/integration/appinfo/AppTest.php +++ b/tests/integration/appinfo/AppTest.php @@ -45,4 +45,14 @@ class AppTest extends GalleryIntegrationTest { $this->assertSame('7', $appData['dependencies']['php']['@attributes']['max-version']); } + + /** + * Routes are not loaded any more, so we can't test the navigation entry, but we know there + * will be an exception thrown when trying to load the navigation + * + * @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException + */ + public function testNavigationEntry() { + $this->assertCount(1, \OC_App::getAppNavigationEntries('gallery')); + } } |