mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized REST API and tests
This commit is contained in:
@@ -10,6 +10,11 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
*/
|
||||
class ImprintFixtureSourceTest extends KernelTestCase
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \PHPUnit\Framework\TestCase::setUp()
|
||||
*/
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
@@ -18,7 +23,7 @@ class ImprintFixtureSourceTest extends KernelTestCase
|
||||
public function testImprintSourceReachable(): void
|
||||
{
|
||||
$request = new Request([], [], [], [], [], [
|
||||
'REQUEST_URI' => 'source/imprint.html',
|
||||
'REQUEST_URI' => 'api/rest/source/imprint.html',
|
||||
]);
|
||||
$request->setMethod(Request::METHOD_GET);
|
||||
$response = static::$kernel->handle($request);
|
||||
|
Reference in New Issue
Block a user