You are here

public function ChecklistapiTest::testPermissions in Checklist API 8

Tests permissions.

File

tests/src/Functional/ChecklistapiTest.php, line 94

Class

ChecklistapiTest
Functionally tests Checklist API.

Namespace

Drupal\Tests\checklistapi\Functional

Code

public function testPermissions() {
  self::assertTrue($this
    ->checkPermissions([
    'view checklistapi checklists report',
    'view any checklistapi checklist',
    'edit any checklistapi checklist',
  ]), 'Created universal permissions.');
  self::assertTrue($this
    ->checkPermissions([
    'view example_checklist checklistapi checklist',
    'edit example_checklist checklistapi checklist',
  ]), 'Created per-checklist permissions.');
}