diff options
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/tests/ApiTest.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareAPIControllerTest.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 0ddee32f7d0..9a2bca486c1 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1103,7 +1103,7 @@ class ShareAPIController extends OCSController { Constants::PERMISSION_READ | Constants::PERMISSION_UPDATE, // allow to edit single files ], true) ) { - throw new OCSBadRequestException($this->l->t('Can\'t change permissions for public share links')); + throw new OCSBadRequestException($this->l->t('Cannot change permissions for public share links')); } if ( diff --git a/apps/files_sharing/tests/ApiTest.php b/apps/files_sharing/tests/ApiTest.php index 59837195605..523faec1615 100644 --- a/apps/files_sharing/tests/ApiTest.php +++ b/apps/files_sharing/tests/ApiTest.php @@ -1356,7 +1356,7 @@ class ApiTest extends TestCase { $this->fail(); } catch (OCSException $e) { $this->assertEquals(404, $e->getCode()); - $this->assertEquals('Can’t set expiration date more than 7 days in the future', $e->getMessage()); + $this->assertEquals('Cannot set expiration date more than 7 days in the future', $e->getMessage()); } $ocs->cleanup(); diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index 009dfe86a48..11eefc18f64 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -3475,13 +3475,13 @@ class ShareAPIControllerTest extends TestCase { $this->shareManager->expects($this->once()) ->method('updateShare') ->with($share) - ->willThrowException(new GenericShareException('Can’t increase permissions of path/file', 'Can’t increase permissions of path/file', 404)); + ->willThrowException(new GenericShareException('Cannot increase permissions of path/file', 'Cannot increase permissions of path/file', 404)); try { $ocs->updateShare(42, 31); $this->fail(); } catch (OCSException $e) { - $this->assertEquals('Can’t increase permissions of path/file', $e->getMessage()); + $this->assertEquals('Cannot increase permissions of path/file', $e->getMessage()); } } |