Loosen MCP docs assertion to avoid brittle matching
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user