Loosen MCP docs assertion to avoid brittle matching

This commit is contained in:
2026-04-24 09:07:34 +00:00
parent cebc945fbe
commit 9f87c2eca0
@@ -14,7 +14,7 @@ class PublicApiDocumentationTest extends TestCase
$content = (string) $response->getContent(); $content = (string) $response->getContent();
$this->assertMatchesRegularExpression('/"hideClientButton"\s*:\s*true/', $content); $this->assertMatchesRegularExpression('/"hideClientButton"\s*:\s*true/', $content);
$this->assertMatchesRegularExpression('/"mcp"\s*:\s*\{\s*"disabled"\s*:\s*true\s*\}/', $content); $this->assertMatchesRegularExpression('/"mcp"\s*:\s*\{[^}]*"disabled"\s*:\s*true/', $content);
} }
public function test_openapi_document_is_publicly_served(): void public function test_openapi_document_is_publicly_served(): void