You are here

public function DelegatableRolesTest::testGetAllRoles in Role Delegation 8

Test the all roles methods filters special roles.

@covers ::getAllRoles

File

tests/src/Kernel/DelegatableRolesTest.php, line 76

Class

DelegatableRolesTest
@coversDefaultClass \Drupal\role_delegation\DelegatableRoles

Namespace

Drupal\Tests\role_delegation\Kernel

Code

public function testGetAllRoles() {
  $rid1 = $this
    ->createRole([]);
  $rid2 = $this
    ->createRole([]);
  $this
    ->assertEquals([
    $rid1,
    $rid2,
  ], array_keys($this->delegatableRoles
    ->getAllRoles()));
}