diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2025-08-13 10:45:10 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2025-08-13 10:46:40 +0200 |
| commit | beb68ad3ddc48f9e913815e0e18f11965201f32e (patch) | |
| tree | c8f3cdabedb6f2635bd0f5378bc5e426ba8c5f65 /tests/ServerImplementationTest.php | |
| parent | 6b7e857f21bef9ba71ac36c202678ec0d84eeff5 (diff) | |
whitespace :]
Diffstat (limited to 'tests/ServerImplementationTest.php')
| -rw-r--r-- | tests/ServerImplementationTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/ServerImplementationTest.php b/tests/ServerImplementationTest.php index 88be7c4..a48a8b8 100644 --- a/tests/ServerImplementationTest.php +++ b/tests/ServerImplementationTest.php @@ -10,26 +10,26 @@ class ServerImplementationTest extends HttpResponseTestCase public function testVersion(): void { $response = $this->request("GET", "/_matrix/federation/v1/version"); - + $this->assertEquals(Response::HTTP_OK, $response->getStatusCode()); $this->assertTrue($this->hasJsonBody($response)); - + $body = json_decode((string)$response->getBody(), true); - + $this->assertArrayHasKey("server", $body); $this->assertArrayHasKey("name", $body["server"]); $this->assertArrayHasKey("version", $body["server"]); } - + public function testVersions(): void { $response = $this->request("GET", "/_matrix/client/versions"); - + $this->assertEquals(Response::HTTP_OK, $response->getStatusCode()); $this->assertTrue($this->hasJsonBody($response)); - + $body = json_decode((string)$response->getBody(), true); - + $this->assertIsArray($body["versions"]); $this->assertTrue(count($body["versions"]) > 0); } |
