public function GroupRoleSynchronizerTest::testGetGroupRoleId in Group 8
Same name and namespace in other branches
- 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\UnitCode
public function testGetGroupRoleId() {
$expected = 'foo-' . substr(md5('group_role_sync.bar'), 0, 9);
$this
->assertEquals($expected, $this->groupRoleSynchronizer
->getGroupRoleId('foo', 'bar'));
}