diff options
author | Valdnet <47037905+Valdnet@users.noreply.github.com> | 2021-05-20 12:27:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 12:27:24 +0300 |
commit | 7ffee26aa8768736593c77dcb12d17978a6e06b2 (patch) | |
tree | f570754f02d47e081d61a9f0bf783ebd8d7cc780 /apps/files_sharing | |
parent | 5432c958be918bece086ccf32ffd86f68bbda675 (diff) | |
parent | dc981623aa040c7e16dfcff16916a7706c689750 (diff) |
Merge pull request #26511 from nextcloud/Valdnet-patch-4
l10n: Unify spelling
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()); } } |