Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-18 23:38:36 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-18 23:38:36 +0300
commit5c6c27f9cacaa3a04a029b2d96b17e57d14c28c0 (patch)
treef7a429a9363749316b2222ced527950f8d5e1bf6 /tests
parentfbf4889db1e90ce4db6d0bf7b15d3e7b6d56863f (diff)
Fix application navigation test
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/appinfo/AppTest.php7
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());
}
}