From 9f87c2eca07256f35d878513d08ed51827ffdc22 Mon Sep 17 00:00:00 2001 From: Koda Date: Fri, 24 Apr 2026 09:07:34 +0000 Subject: [PATCH] Loosen MCP docs assertion to avoid brittle matching --- tests/Feature/Api/PublicApiDocumentationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/Api/PublicApiDocumentationTest.php b/tests/Feature/Api/PublicApiDocumentationTest.php index 361e632..74c8180 100644 --- a/tests/Feature/Api/PublicApiDocumentationTest.php +++ b/tests/Feature/Api/PublicApiDocumentationTest.php @@ -14,7 +14,7 @@ class PublicApiDocumentationTest extends TestCase $content = (string) $response->getContent(); $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