Skip to content

Commit

Permalink
Fix failing integration test for navigation
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Sep 23, 2019
1 parent d82b353 commit 54baf8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/integration/AppInfo/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ public function testAppInstalled() {
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);
}

}

0 comments on commit 54baf8c

Please sign in to comment.