Fixed phpunit tests

This commit is contained in:
Jan Böhmer 2023-01-08 22:44:32 +01:00
parent 011bda3600
commit cad1206175
3 changed files with 20 additions and 12 deletions

View file

@ -165,12 +165,6 @@ class PermissionManagerTest extends WebTestCase
//Check for inherit from group
$this->assertTrue($this->service->inherit($this->user, 'parts', 'show_history'));
$this->assertFalse($this->service->inherit($this->user, 'parts', 'delete'));
$this->assertNull($this->service->inherit($this->user, 'parts', 'search'));
//Check for inherit from group and parent group
$this->assertTrue($this->service->inherit($this->user, 'parts', 'all_parts'));
$this->assertFalse($this->service->inherit($this->user, 'parts', 'no_price_parts'));
$this->assertNull($this->service->inherit($this->user, 'parts', 'obsolete_parts'));
//Test for user without group
$this->assertTrue($this->service->inherit($this->user_withoutGroup, 'parts', 'read'));