Improved tests for project system

This commit is contained in:
Jan Böhmer 2023-01-08 23:22:53 +01:00
parent de4c25ac0e
commit d34dbbbb38
3 changed files with 8 additions and 3 deletions

View file

@ -92,7 +92,7 @@ abstract class AbstractAdminControllerTest extends WebTestCase
}
//Test read/list access by access /new overview page
$client->request('GET', static::$base_path.'/1');
$client->request('GET', static::$base_path.'/1/edit');
$this->assertFalse($client->getResponse()->isRedirect());
$this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
$this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');