Skip to content

Commit

Permalink
Fix expected message in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabiszewski committed Apr 25, 2024
1 parent 33263b9 commit 76f99ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .tests/tests/InternalAPITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ public function testHandleUserNonAdmin(): void {
$json = json_decode($response->getBody());
self::assertNotNull($json, "JSON object is null");
self::assertEquals(1, (int) $json->error, "Wrong error status");
self::assertEquals($lang["servererror"], (string) $json->message, "Wrong error message");
self::assertEquals($lang["notauthorized"], (string) $json->message, "Wrong error message");
self::assertEquals(2, $this->getConnection()->getRowCount("users"), "Wrong row count");

}
Expand All @@ -1234,7 +1234,7 @@ public function testHandleUserSelf(): void {
$json = json_decode($response->getBody());
self::assertNotNull($json, "JSON object is null");
self::assertEquals(1, (int) $json->error, "Wrong error status");
self::assertEquals($lang["servererror"], (string) $json->message, "Wrong error message");
self::assertEquals($lang["notauthorized"], (string) $json->message, "Wrong error message");
self::assertEquals(1, $this->getConnection()->getRowCount("users"), "Wrong row count");
}

Expand Down Expand Up @@ -1277,7 +1277,7 @@ public function testHandleUserNoAuth(): void {
$json = json_decode($response->getBody());
self::assertNotNull($json, "JSON object is null");
self::assertEquals(1, (int) $json->error, "Wrong error status");
self::assertEquals($lang["servererror"], (string) $json->message, "Wrong error message");
self::assertEquals($lang["notauthorized"], (string) $json->message, "Wrong error message");
self::assertEquals(2, $this->getConnection()->getRowCount("users"), "Wrong row count");
}

Expand Down

0 comments on commit 76f99ed

Please sign in to comment.