diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/AppInfo/ApplicationTest.php | 6 |
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); } } |