Files
immorechner/tests/Api/ApiDocumentationTest.php
2025-11-08 23:44:33 +01:00

29 lines
670 B
PHP

<?php
namespace App\Tests\Api;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class ApiDocumentationTest extends WebTestCase
{
public function testSwaggerUIAccessible(): void
{
$client = static::createClient();
// Test: Swagger UI ist öffentlich zugänglich
$client->request('GET', '/api/docs.html');
$this->assertResponseIsSuccessful();
}
public function testOpenAPIJsonLdAccessible(): void
{
$client = static::createClient();
// Test: OpenAPI JSON-LD ist öffentlich zugänglich
$client->request('GET', '/api/docs.jsonld');
$this->assertResponseIsSuccessful();
}
}