summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-03-25 13:20:16 +0100
committerJoas Schilling <coding@schilljs.com>2024-03-25 14:21:52 +0100
commitdababa5138a4c6c313bb731f20356a2fb169f7e1 (patch)
tree4d1b307a685b9e277ab2ccf69f5b1ee15d078a87 /apps
parent46906b7d69642f7e5b1dc031e00921b39b27dce8 (diff)
downloadnextcloud-server-dababa5138a4c6c313bb731f20356a2fb169f7e1.tar.gz
nextcloud-server-dababa5138a4c6c313bb731f20356a2fb169f7e1.zip
fix(federation): Fix creating local cloudIds with http:// protocol
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/tests/FederatedShareProviderTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
index 6f0cb93c4a9..40b8b944507 100644
--- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
+++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
@@ -195,9 +195,9 @@ class FederatedShareProviderTest extends \Test\TestCase {
$this->equalTo('myFile'),
$this->anything(),
'shareOwner',
- 'shareOwner@http://localhost/',
+ 'shareOwner@http://localhost',
'sharedBy',
- 'sharedBy@http://localhost/'
+ 'sharedBy@http://localhost'
)
->willReturn(true);
@@ -276,9 +276,9 @@ class FederatedShareProviderTest extends \Test\TestCase {
$this->equalTo('myFile'),
$this->anything(),
'shareOwner',
- 'shareOwner@http://localhost/',
+ 'shareOwner@http://localhost',
'sharedBy',
- 'sharedBy@http://localhost/'
+ 'sharedBy@http://localhost'
)->willReturn(false);
$this->rootFolder->method('getById')
@@ -337,9 +337,9 @@ class FederatedShareProviderTest extends \Test\TestCase {
$this->equalTo('myFile'),
$this->anything(),
'shareOwner',
- 'shareOwner@http://localhost/',
+ 'shareOwner@http://localhost',
'sharedBy',
- 'sharedBy@http://localhost/'
+ 'sharedBy@http://localhost'
)->willThrowException(new \Exception('dummy'));
$this->rootFolder->method('getById')
@@ -443,9 +443,9 @@ class FederatedShareProviderTest extends \Test\TestCase {
$this->equalTo('myFile'),
$this->anything(),
'shareOwner',
- 'shareOwner@http://localhost/',
+ 'shareOwner@http://localhost',
'sharedBy',
- 'sharedBy@http://localhost/'
+ 'sharedBy@http://localhost'
)->willReturn(true);
$this->rootFolder->expects($this->never())->method($this->anything());
@@ -514,9 +514,9 @@ class FederatedShareProviderTest extends \Test\TestCase {
$this->equalTo('myFile'),
$this->anything(),
$owner,
- $owner . '@http://localhost/',
+ $owner . '@http://localhost',
$sharedBy,
- $sharedBy . '@http://localhost/'
+ $sharedBy . '@http://localhost'
)->willReturn(true);
if ($owner === $sharedBy) {