You are here

public function ScheduledTransitionsPermissionsUnitTest::testAddScheduledTransitionsPermission 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::testAddScheduledTransitionsPermission()

Tests result of permission function.

@covers ::viewScheduledTransitionsPermission

File

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

Class

ScheduledTransitionsPermissionsUnitTest
Tests scheduled transactions dynamic permissions.

Namespace

Drupal\Tests\scheduled_transitions\Unit

Code

public function testAddScheduledTransitionsPermission() : void {
  $actual = ScheduledTransitionsPermissions::addScheduledTransitionsPermission('foo', 'bar');
  $this
    ->assertEquals('add scheduled transitions foo bar', $actual);
}