You are here

public function GroupRoleSynchronizerTest::testGetGroupRoleId in Group 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/GroupRoleSynchronizerTest.php \Drupal\Tests\group\Unit\GroupRoleSynchronizerTest::testGetGroupRoleId()

@covers ::getGroupRoleId

File

tests/src/Unit/GroupRoleSynchronizerTest.php, line 47

Class

GroupRoleSynchronizerTest
Tests the outsider group role synchronizer service.

Namespace

Drupal\Tests\group\Unit

Code

public function testGetGroupRoleId() {
  $expected = 'foo-' . substr(md5('group_role_sync.bar'), 0, 9);
  $this
    ->assertEquals($expected, $this->groupRoleSynchronizer
    ->getGroupRoleId('foo', 'bar'));
}