diff options
author | Julius Haertl <jus@bitgrid.net> | 2016-11-17 12:30:52 +0100 |
---|---|---|
committer | Julius Haertl <jus@bitgrid.net> | 2016-11-17 19:24:24 +0100 |
commit | caacb6c261140cd8f86ba5e430d2d9af217eae45 (patch) | |
tree | ae0f85faf2600eeabbea254537f1cb9fc29535b1 /tests/lib/App | |
parent | de983e61e3660964154d1c7f447ca8a2055cc2d6 (diff) | |
download | nextcloud-server-caacb6c261140cd8f86ba5e430d2d9af217eae45.tar.gz nextcloud-server-caacb6c261140cd8f86ba5e430d2d9af217eae45.zip |
Expose getAppPath to public API
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'tests/lib/App')
-rw-r--r-- | tests/lib/App/ManagerTest.php | 10 |
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()) |