aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Http/WellKnown
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Http/WellKnown')
-rw-r--r--tests/lib/Http/WellKnown/JrdResponseTest.php4
-rw-r--r--tests/lib/Http/WellKnown/RequestManagerTest.php12
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/lib/Http/WellKnown/JrdResponseTest.php b/tests/lib/Http/WellKnown/JrdResponseTest.php
index 0f500f96eef..375f244d618 100644
--- a/tests/lib/Http/WellKnown/JrdResponseTest.php
+++ b/tests/lib/Http/WellKnown/JrdResponseTest.php
@@ -15,7 +15,7 @@ use Test\TestCase;
class JrdResponseTest extends TestCase {
public function testEmptyToHttpResponse(): void {
- $response = new JrdResponse("subject");
+ $response = new JrdResponse('subject');
$httpResponse = $response->toHttpResponse();
self::assertTrue($response->isEmpty());
@@ -30,7 +30,7 @@ class JrdResponseTest extends TestCase {
}
public function testComplexToHttpResponse(): void {
- $response = new JrdResponse("subject");
+ $response = new JrdResponse('subject');
$response->addAlias('alias');
$response->addAlias('blias');
$response->addProperty('propa', 'a');
diff --git a/tests/lib/Http/WellKnown/RequestManagerTest.php b/tests/lib/Http/WellKnown/RequestManagerTest.php
index 1ee2fa1139d..3ab6cb190b2 100644
--- a/tests/lib/Http/WellKnown/RequestManagerTest.php
+++ b/tests/lib/Http/WellKnown/RequestManagerTest.php
@@ -57,7 +57,7 @@ class RequestManagerTest extends TestCase {
$request = $this->createMock(IRequest::class);
$this->expectException(RuntimeException::class);
- $this->manager->process("webfinger", $request);
+ $this->manager->process('webfinger', $request);
}
public function testProcessNoHandlersRegistered(): void {
@@ -70,7 +70,7 @@ class RequestManagerTest extends TestCase {
->method('getWellKnownHandlers')
->willReturn([]);
- $response = $this->manager->process("webfinger", $request);
+ $response = $this->manager->process('webfinger', $request);
self::assertNull($response);
}
@@ -91,11 +91,11 @@ class RequestManagerTest extends TestCase {
$this->container->expects(self::once())
->method('get')
->with(get_class($handler))
- ->willThrowException(new QueryException(""));
+ ->willThrowException(new QueryException(''));
$this->logger->expects(self::once())
->method('error');
- $response = $this->manager->process("webfinger", $request);
+ $response = $this->manager->process('webfinger', $request);
self::assertNull($response);
}
@@ -120,7 +120,7 @@ class RequestManagerTest extends TestCase {
$this->logger->expects(self::once())
->method('error');
- $response = $this->manager->process("webfinger", $request);
+ $response = $this->manager->process('webfinger', $request);
self::assertNull($response);
}
@@ -146,7 +146,7 @@ class RequestManagerTest extends TestCase {
->with(get_class($handler))
->willReturn($handler);
- $response = $this->manager->process("webfinger", $request);
+ $response = $this->manager->process('webfinger', $request);
self::assertNotNull($response);
self::assertInstanceOf(JrdResponse::class, $response);