29 lines
670 B
PHP
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();
|
|
}
|
|
}
|