aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Federation/CloudIdManagerTest.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-06-30 16:56:59 +0200
committerRobin Appelman <robin@icewind.nl>2025-07-01 22:45:52 +0200
commitaa15f9d16d5b46d04763c7deedb129990e819364 (patch)
tree758e0aebcac34a545f9a21806120a9fcb96f4cb6 /tests/lib/Federation/CloudIdManagerTest.php
parent1620a0c0510a42b1da0a66488838f1ce3ba1210d (diff)
downloadnextcloud-server-rector-phpunit10.tar.gz
nextcloud-server-rector-phpunit10.zip
chore: run rectorrector-phpunit10
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Federation/CloudIdManagerTest.php')
-rw-r--r--tests/lib/Federation/CloudIdManagerTest.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/lib/Federation/CloudIdManagerTest.php b/tests/lib/Federation/CloudIdManagerTest.php
index 0bd0659b2f2..3bd3cf6149d 100644
--- a/tests/lib/Federation/CloudIdManagerTest.php
+++ b/tests/lib/Federation/CloudIdManagerTest.php
@@ -65,9 +65,7 @@ class CloudIdManagerTest extends TestCase {
];
}
- /**
- * @dataProvider dataGetDisplayNameFromContact
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataGetDisplayNameFromContact')]
public function testGetDisplayNameFromContact(string $cloudId, ?string $displayName, ?string $expected): void {
$returnedContact = [
'CLOUD' => [$cloudId],
@@ -98,9 +96,7 @@ class CloudIdManagerTest extends TestCase {
];
}
- /**
- * @dataProvider cloudIdProvider
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('cloudIdProvider')]
public function testResolveCloudId(string $cloudId, string $user, string $noProtocolRemote, string $cleanId): void {
$displayName = 'Ample Ex';
@@ -130,9 +126,7 @@ class CloudIdManagerTest extends TestCase {
];
}
- /**
- * @dataProvider invalidCloudIdProvider
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('invalidCloudIdProvider')]
public function testInvalidCloudId(string $cloudId): void {
$this->expectException(\InvalidArgumentException::class);
@@ -154,9 +148,7 @@ class CloudIdManagerTest extends TestCase {
];
}
- /**
- * @dataProvider getCloudIdProvider
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('getCloudIdProvider')]
public function testGetCloudId(string $user, ?string $remote, string $id, ?string $searchCloudId = null, ?string $localHost = 'https://example.com', ?string $expectedRemoteId = null): void {
if ($remote !== null) {
$this->contactsManager->expects($this->any())