You are here

public function ScheduledTransitionsPermissionsUnitTest::testViewScheduledTransitionsPermission in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/ScheduledTransitionsPermissionsUnitTest.php \Drupal\Tests\scheduled_transitions\Unit\ScheduledTransitionsPermissionsUnitTest::testViewScheduledTransitionsPermission()

Tests result of permission function.

@covers ::viewScheduledTransitionsPermission

File

tests/src/Unit/ScheduledTransitionsPermissionsUnitTest.php, line 23

Class

ScheduledTransitionsPermissionsUnitTest
Tests scheduled transactions dynamic permissions.

Namespace

Drupal\Tests\scheduled_transitions\Unit

Code

public function testViewScheduledTransitionsPermission() : void {
  $actual = ScheduledTransitionsPermissions::viewScheduledTransitionsPermission('foo', 'bar');
  $this
    ->assertEquals('view scheduled transitions foo bar', $actual);
}