aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Federation
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Federation')
-rw-r--r--tests/lib/Federation/CloudIdManagerTest.php16
-rw-r--r--tests/lib/Federation/CloudIdTest.php4
2 files changed, 5 insertions, 15 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())
diff --git a/tests/lib/Federation/CloudIdTest.php b/tests/lib/Federation/CloudIdTest.php
index ec3cc15d6ff..67683861e40 100644
--- a/tests/lib/Federation/CloudIdTest.php
+++ b/tests/lib/Federation/CloudIdTest.php
@@ -37,9 +37,7 @@ class CloudIdTest extends TestCase {
];
}
- /**
- * @dataProvider dataGetDisplayCloudId
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataGetDisplayCloudId')]
public function testGetDisplayCloudId(string $id, string $user, string $remote, string $display, ?string $addressbookName = null): void {
$this->cloudIdManager->expects($this->once())
->method('getDisplayNameFromContact')