infinito/application/src/Controller/DefaultControllerTest.php

31 lines
639 B
PHP
Raw Normal View History

2018-09-05 09:11:08 +02:00
<?php
namespace App\Controller;
use PHPUnit\Framework\TestCase;
/**
*
* @author kevinfrantz
*
*/
class DefaultControllerTest extends TestCase
{
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{
$this->assertEquals(true, $this->defaultController->homepage()->isSuccessful());
}
public function testImprint():void{
$this->assertEquals(true, $this->defaultController->imprint()->isSuccessful());
}
}