diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index f3b0467fa1..e8d48c42cd 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -477,7 +477,7 @@ class ShareAPIController extends OCSController { } if ($permissions < 0 || $permissions > Constants::PERMISSION_ALL) { - throw new OCSNotFoundException($this->l->t('invalid permissions')); + throw new OCSNotFoundException($this->l->t('Invalid permissions')); } // Shares always require read permissions diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index 4e46aa074b..009dfe86a4 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -1602,7 +1602,7 @@ class ShareAPIControllerTest extends TestCase { public function testCreateShareInvalidPermissions() { $this->expectException(\OCP\AppFramework\OCS\OCSNotFoundException::class); - $this->expectExceptionMessage('invalid permissions'); + $this->expectExceptionMessage('Invalid permissions'); $share = $this->newShare(); $this->shareManager->method('newShare')->willReturn($share);