2018-09-05 09:11:08 +02:00
|
|
|
<?php
|
2018-09-05 19:12:57 +02:00
|
|
|
namespace App\Tests\Unit\Controller;
|
|
|
|
|
2018-09-05 09:11:08 +02:00
|
|
|
|
2018-09-05 18:05:59 +02:00
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
2018-09-05 19:12:57 +02:00
|
|
|
use App\Controller\DefaultControllerInterface;
|
|
|
|
use App\Controller\DefaultController;
|
2018-09-05 09:11:08 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author kevinfrantz
|
|
|
|
*
|
|
|
|
*/
|
2018-09-05 18:05:59 +02:00
|
|
|
class DefaultControllerTest extends WebTestCase
|
2018-09-05 09:11:08 +02:00
|
|
|
{
|
2018-09-05 16:00:12 +02:00
|
|
|
/**
|
|
|
|
* @var DefaultControllerInterface
|
|
|
|
*/
|
2018-09-05 09:11:08 +02:00
|
|
|
protected $defaultController;
|
|
|
|
|
|
|
|
public function setUp():void{
|
|
|
|
$this->defaultController = new DefaultController();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testHomepage():void{
|
2018-09-05 18:05:59 +02:00
|
|
|
$client = static::createClient();
|
|
|
|
$client->request('GET', '/');
|
|
|
|
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
2018-09-05 09:11:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function testImprint():void{
|
2018-09-05 18:05:59 +02:00
|
|
|
$client = static::createClient();
|
|
|
|
$client->request('GET', '/imprint');
|
|
|
|
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
2018-09-05 09:11:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|