diff options
author | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-09-18 23:41:15 +0300 |
---|---|---|
committer | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-09-18 23:41:15 +0300 |
commit | 44d68f0876b21605bcb576b4437e37a4c1399f63 (patch) | |
tree | f7a429a9363749316b2222ced527950f8d5e1bf6 | |
parent | fbf4889db1e90ce4db6d0bf7b15d3e7b6d56863f (diff) | |
parent | 5c6c27f9cacaa3a04a029b2d96b17e57d14c28c0 (diff) |
Merge pull request #362 from owncloud/fix-navigation-test
Fix application navigation test
-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()); } } |