infinito/application/tests/unit/Controller/DefaultControllerTest.php

38 lines
900 B
PHP
Raw Normal View History

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
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
*
*/
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{
$client = static::createClient();
$client->request('GET', '/');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
2018-09-05 09:11:08 +02:00
}
public function testImprint():void{
$client = static::createClient();
$client->request('GET', '/imprint');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
2018-09-05 09:11:08 +02:00
}
}