ActivityPubユニットテストの追加、CURLの変更、認証にログの追加

This commit is contained in:
2025-12-22 23:04:08 +09:00
parent 3b96986a85
commit 05f02e74d5
6 changed files with 110 additions and 78 deletions

View File

@@ -65,7 +65,7 @@ if (CURL_ENABLED) {
$curl = new Curl('https://076.moe');
$result = $curl->execute();
$test->assertTrue($result);
$test->assertTrue($result->isSuccess);
$test->assertEquals(200, $curl->getResponseCode());
$test->assertNotNull($curl->getResponseBody());
$test->assertStringContains('<html', $curl->getResponseBody());
@@ -81,7 +81,7 @@ if (CURL_ENABLED) {
]);
$result = $curl->execute();
$test->assertTrue($result);
$test->assertTrue($result->isSuccess);
$test->assertEquals(200, $curl->getResponseCode());
$responseBody = $curl->getResponseBody();