Merge pull request 'Review follow-up for PR #38: stabilize Scalar docs assertions' (#54) from koda/pr38-review-fixes into codex/public-api-docs
linter / quality (pull_request) Successful in 1m16s
tests / ci (8.4) (pull_request) Successful in 1m27s

Reviewed-on: OpenSource/KanbanGit#54
This commit was merged in pull request #54.
This commit is contained in:
2026-04-24 09:11:09 +00:00
@@ -8,10 +8,13 @@ class PublicApiDocumentationTest extends TestCase
{
public function test_scalar_api_docs_are_public(): void
{
$this->get('/api/docs')
->assertOk()
->assertSee('"hideClientButton":true', false)
->assertSee('"mcp":{"disabled":true}', false);
$response = $this->get('/api/docs')
->assertOk();
$content = (string) $response->getContent();
$this->assertMatchesRegularExpression('/"hideClientButton"\s*:\s*true/', $content);
$this->assertMatchesRegularExpression('/"mcp"\s*:\s*\{[^}]*"disabled"\s*:\s*true/', $content);
}
public function test_openapi_document_is_publicly_served(): void