mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +00:00 
			
		
		
		
	Expanded rights to also manage actions instead of just a cruds
This commit is contained in:
		@@ -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.");
 | 
			
		||||
//        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user