diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-18 23:38:36 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-18 23:38:36 +0300 |
commit | 5c6c27f9cacaa3a04a029b2d96b17e57d14c28c0 (patch) | |
tree | f7a429a9363749316b2222ced527950f8d5e1bf6 /tests | |
parent | fbf4889db1e90ce4db6d0bf7b15d3e7b6d56863f (diff) |
Fix application navigation test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/appinfo/AppTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/integration/appinfo/AppTest.php b/tests/integration/appinfo/AppTest.php index d6ae7ac4..f046299b 100644 --- a/tests/integration/appinfo/AppTest.php +++ b/tests/integration/appinfo/AppTest.php @@ -47,6 +47,11 @@ class AppTest extends GalleryIntegrationTest { } public function testNavigationEntry() { - $this->assertCount(1, \OC_App::getAppNavigationEntries('gallery')); + $navigationManager = \OC::$server->getNavigationManager(); + $navigationManager->clear(); + $this->assertEmpty($navigationManager->getAll()); + require __DIR__ . '/../../../appinfo/app.php'; + // Test whether the navigation entry got added + $this->assertCount(1, $navigationManager->getAll()); } } |