diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2024-02-13 10:26:36 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2024-02-13 21:06:31 +0100 |
commit | 4a509dfe8ec3287b513cc7d68342adc859870ee5 (patch) | |
tree | a6acc8cb7f08498e4dda9c3bce32ccb3847bb475 /tests | |
parent | 9593f4d6f9bac5eee9527ac591a6f39dae11d109 (diff) | |
download | nextcloud-server-4a509dfe8ec3287b513cc7d68342adc859870ee5.tar.gz nextcloud-server-4a509dfe8ec3287b513cc7d68342adc859870ee5.zip |
fix: phpunit
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Core/Controller/OCSControllerTest.php | 2 | ||||
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/Core/Controller/OCSControllerTest.php b/tests/Core/Controller/OCSControllerTest.php index 61ed4a50d62..a10455e482a 100644 --- a/tests/Core/Controller/OCSControllerTest.php +++ b/tests/Core/Controller/OCSControllerTest.php @@ -196,7 +196,7 @@ class OCSControllerTest extends TestCase { ->with('NotExistingUser') ->willReturn(null); - $expected = new DataResponse(['User not found'], 404); + $expected = new DataResponse(['Account not found'], 404); $this->assertEquals($expected, $this->controller->getIdentityProof('NotExistingUser')); } diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index 165b818517b..bf871b2bf8f 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -1618,7 +1618,7 @@ class ManagerTest extends \Test\TestCase { public function testUserCreateChecksIdenticalShareExists() { $this->expectException(AlreadySharedException::class); - $this->expectExceptionMessage('Sharing name.txt failed, because this item is already shared with account user'); + $this->expectExceptionMessage('Sharing name.txt failed, because this item is already shared with the account user'); $share = $this->manager->newShare(); $share->setSharedWithDisplayName('user'); @@ -1647,7 +1647,7 @@ class ManagerTest extends \Test\TestCase { public function testUserCreateChecksIdenticalPathSharedViaGroup() { $this->expectException(AlreadySharedException::class); - $this->expectExceptionMessage('Sharing name2.txt failed, because this item is already shared with account userName'); + $this->expectExceptionMessage('Sharing name2.txt failed, because this item is already shared with the account userName'); $share = $this->manager->newShare(); |