Browse Source

Fix failing integration test for navigation

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
pull/632/head
Raimund Schlüßler 1 month ago
parent
commit
54baf8c3cf
No account linked to committer's email address
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      tests/integration/AppInfo/ApplicationTest.php

+ 2
- 4
tests/integration/AppInfo/ApplicationTest.php View File

@@ -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);
}

}

Loading…
Cancel
Save