infinito/application/symfony/tests/Integration/Domain/Fixture/ImprintFixtureSourceIntegrationTest.php

34 lines
879 B
PHP
Raw Normal View History

2019-02-18 20:19:05 +01:00
<?php
namespace tests\Integration\Domain\Fixture;
2019-02-18 20:19:05 +01:00
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\HttpFoundation\Request;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
2019-02-18 20:19:05 +01:00
/**
* @author kevinfrantz
*/
2019-03-31 16:59:46 +02:00
class ImprintFixtureSourceIntegrationTest extends KernelTestCase
2019-02-18 20:19:05 +01:00
{
2019-02-19 19:36:02 +01:00
/**
* {@inheritdoc}
*
* @see \PHPUnit\Framework\TestCase::setUp()
*/
2019-02-18 20:19:05 +01:00
public function setUp(): void
{
self::bootKernel();
}
public function testImprintSourceReachable(): void
{
$request = new Request([], [], [], [], [], [
2019-03-29 23:21:52 +01:00
'REQUEST_URI' => 'api/rest/source/'.ImpressumFixtureSource::getSlug().'.html',
2019-02-18 20:19:05 +01:00
]);
$request->setMethod(Request::METHOD_GET);
$response = static::$kernel->handle($request);
$this->assertEquals(200, $response->getStatusCode());
}
}