summaryrefslogtreecommitdiffstats
path: root/tests/lib/Federation/CloudIdManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Federation/CloudIdManagerTest.php')
-rw-r--r--tests/lib/Federation/CloudIdManagerTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/Federation/CloudIdManagerTest.php b/tests/lib/Federation/CloudIdManagerTest.php
index 3f1cfabe202..fe673588bba 100644
--- a/tests/lib/Federation/CloudIdManagerTest.php
+++ b/tests/lib/Federation/CloudIdManagerTest.php
@@ -35,12 +35,11 @@ class CloudIdManagerTest extends TestCase {
public function cloudIdProvider() {
return [
- ['test@example.com', 'test', 'example.com'],
- ['test@example.com/cloud', 'test', 'example.com/cloud'],
- ['test@example.com/cloud/', 'test', 'example.com/cloud'],
- ['test@example.com/cloud/index.php', 'test', 'example.com/cloud'],
- ['test@example.com@example.com', 'test@example.com', 'example.com'],
- ['test@example.com@example.com', 'test@example.com', 'example.com'],
+ ['test@example.com', 'test', 'example.com', 'test@example.com'],
+ ['test@example.com/cloud', 'test', 'example.com/cloud', 'test@example.com/cloud'],
+ ['test@example.com/cloud/', 'test', 'example.com/cloud', 'test@example.com/cloud'],
+ ['test@example.com/cloud/index.php', 'test', 'example.com/cloud', 'test@example.com/cloud'],
+ ['test@example.com@example.com', 'test@example.com', 'example.com', 'test@example.com@example.com'],
];
}
@@ -51,11 +50,12 @@ class CloudIdManagerTest extends TestCase {
* @param string $user
* @param string $remote
*/
- public function testResolveCloudId($cloudId, $user, $remote) {
+ public function testResolveCloudId($cloudId, $user, $remote, $cleanId) {
$cloudId = $this->cloudIdManager->resolveCloudId($cloudId);
$this->assertEquals($user, $cloudId->getUser());
$this->assertEquals($remote, $cloudId->getRemote());
+ $this->assertEquals($cleanId, $cloudId->getId());
}
public function invalidCloudIdProvider() {