Expanded rights to also manage actions instead of just a cruds

This commit is contained in:
Kevin Frantz
2019-02-21 18:46:57 +01:00
parent 465d6d6d01
commit 3e91aed050
27 changed files with 91 additions and 98 deletions

View File

@@ -4,6 +4,7 @@ namespace Infinito\Tests\Unit\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Infinito\Controller\DefaultController;
use Infinito\DBAL\Types\RESTResponseType;
/**
* @author kevinfrantz
@@ -30,7 +31,11 @@ class DefaultControllerTest extends WebTestCase
public function testImprint(): void
{
$client = static::createClient();
$client->request('GET', '/imprint');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
// foreach(RESTResponseType::getChoices() as $format){
$format = 'html';
$url = 'api/rest/source/imprint.'.$format;
$client->request('GET', $url);
$this->assertEquals(200, $client->getResponse()->getStatusCode(), "Route $url is not reachable.");
// }
}
}