mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 02:09:03 +02:00
Improved tests for project system
This commit is contained in:
parent
de4c25ac0e
commit
d34dbbbb38
3 changed files with 8 additions and 3 deletions
|
@ -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!');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue