summaryrefslogtreecommitdiffstats
path: root/tests/lib/App/ManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/App/ManagerTest.php')
-rw-r--r--tests/lib/App/ManagerTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lib/App/ManagerTest.php b/tests/lib/App/ManagerTest.php
index e04f7c82375..3dbcb8a5609 100644
--- a/tests/lib/App/ManagerTest.php
+++ b/tests/lib/App/ManagerTest.php
@@ -11,6 +11,7 @@ namespace Test\App;
use OC\Group\Group;
use OC\User\User;
+use OCP\App\AppPathNotFoundException;
use Test\TestCase;
/**
@@ -260,6 +261,15 @@ class ManagerTest extends TestCase {
$this->assertFalse($this->manager->isEnabledForUser('test', $user));
}
+ public function testGetAppPath() {
+ $this->assertEquals(\OC::$SERVERROOT . '/apps/files', $this->manager->getAppPath('files'));
+ }
+
+ public function testGetAppPathFail() {
+ $this->expectException(AppPathNotFoundException::class);
+ $this->manager->getAppPath('testnotexisting');
+ }
+
public function testIsEnabledForUserEnabledForGroup() {
$user = $this->newUser('user1');
$this->groupManager->expects($this->once())