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

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2019-09-23 17:53:17 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2019-09-23 17:54:32 +0300
commit54baf8c3cfc86f990606048ab874867bd62f8c3e (patch)
tree8080c96057537001aadb8bf1577f6fcd0604678b /tests
parentd82b353d4d96d3f3342986c113a2da089d039fd2 (diff)
Fix failing integration test for navigation
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/AppInfo/ApplicationTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/integration/AppInfo/ApplicationTest.php b/tests/integration/AppInfo/ApplicationTest.php
index 8c568482..e1447fb1 100644
--- a/tests/integration/AppInfo/ApplicationTest.php
+++ b/tests/integration/AppInfo/ApplicationTest.php
@@ -45,10 +45,8 @@ class AppTest extends TestCase {
public function testNavigation() {
$navigationManager = \OC::$server->getNavigationManager();
$navigationManager->clear();
- $countBefore = count($navigationManager->getAll());
- require __DIR__ . '/../../../appinfo/app.php';
- // Test whether the navigation entry got added
- $this->assertCount($countBefore + 1, $navigationManager->getAll());
+ $enabled = array_key_exists('tasks', $navigationManager->getAll());
+ $this->assertTrue($enabled);
}
}