aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/SetupCheck/CheckServerResponseTraitTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/SetupCheck/CheckServerResponseTraitTest.php')
-rw-r--r--tests/lib/SetupCheck/CheckServerResponseTraitTest.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/lib/SetupCheck/CheckServerResponseTraitTest.php b/tests/lib/SetupCheck/CheckServerResponseTraitTest.php
index 32fbce64ce6..3f7b498bfeb 100644
--- a/tests/lib/SetupCheck/CheckServerResponseTraitTest.php
+++ b/tests/lib/SetupCheck/CheckServerResponseTraitTest.php
@@ -19,7 +19,7 @@ use Test\TestCase;
class CheckServerResponseTraitTest extends TestCase {
protected const BASE_URL = 'https://nextcloud.local';
-
+
private IL10N&MockObject $l10n;
private IConfig&MockObject $config;
private IURLGenerator&MockObject $urlGenerator;
@@ -38,7 +38,7 @@ class CheckServerResponseTraitTest extends TestCase {
$this->urlGenerator = $this->createMock(IURLGenerator::class);
$this->clientService = $this->createMock(IClientService::class);
$this->logger = $this->createMock(LoggerInterface::class);
-
+
$this->trait = new CheckServerResponseTraitImplementation(
$this->l10n,
$this->config,
@@ -48,9 +48,7 @@ class CheckServerResponseTraitTest extends TestCase {
);
}
- /**
- * @dataProvider dataNormalizeUrl
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataNormalizeUrl')]
public function testNormalizeUrl(string $url, bool $isRootRequest, string $expected): void {
$this->assertEquals($expected, $this->trait->normalizeUrl($url, $isRootRequest));
}
@@ -75,9 +73,7 @@ class CheckServerResponseTraitTest extends TestCase {
];
}
- /**
- * @dataProvider dataGetTestUrls
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataGetTestUrls')]
public function testGetTestUrls(
string $url,
bool $isRootRequest,
@@ -103,7 +99,7 @@ class CheckServerResponseTraitTest extends TestCase {
$this->urlGenerator->expects(self::atLeastOnce())
->method('getBaseUrl')
->willReturn(self::BASE_URL . $webRoot);
-
+
$result = $this->trait->getTestUrls($url, $isRootRequest);
$this->assertEquals($expected, $result);
}