diff options
author | Olivier Paroz (oparoz) <github@oparoz.com> | 2017-03-12 01:38:48 +0300 |
---|---|---|
committer | Olivier Paroz (oparoz) <github@oparoz.com> | 2017-03-12 01:38:48 +0300 |
commit | 116d8a18c027eeda770f06b84c1ff2e727bdca6c (patch) | |
tree | 128e0973910ee1a644cc4a03ca343147ebd71e92 | |
parent | 14e3054a44ef465b1c6cc7295e4f8652087ccd9d (diff) |
Fix App navigation test
Signed-off-by: Olivier Paroz (oparoz) <github@oparoz.com>
-rw-r--r-- | tests/integration/appinfo/AppTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/appinfo/AppTest.php b/tests/integration/appinfo/AppTest.php index 6e6e8685..fc5adf95 100644 --- a/tests/integration/appinfo/AppTest.php +++ b/tests/integration/appinfo/AppTest.php @@ -49,9 +49,9 @@ class AppTest extends GalleryIntegrationTest { public function testNavigationEntry() { $navigationManager = \OC::$server->getNavigationManager(); $navigationManager->clear(); - $this->assertEmpty($navigationManager->getAll()); + $countBefore = count($navigationManager->getAll()); require __DIR__ . '/../../../appinfo/app.php'; // Test whether the navigation entry got added - $this->assertCount(1, $navigationManager->getAll()); + $this->assertCount($countBefore + 1, $navigationManager->getAll()); } } |