public function GroupRoleSynchronizerTest::testGetGroupRoleIdsByUserRole in Group 8
Same name and namespace in other branches
- 2.0.x tests/src/Unit/GroupRoleSynchronizerTest.php \Drupal\Tests\group\Unit\GroupRoleSynchronizerTest::testGetGroupRoleIdsByUserRole()
@covers ::getGroupRoleIdsByUserRole @depends testGetGroupRoleId
File
- tests/
src/ Unit/ GroupRoleSynchronizerTest.php, line 84
Class
- GroupRoleSynchronizerTest
- Tests the outsider group role synchronizer service.
Namespace
Drupal\Tests\group\UnitCode
public function testGetGroupRoleIdsByUserRole() {
$this
->setUpConfigEntityStorage('group_type', [
'foo',
'bar',
]);
$expected = [
$this->groupRoleSynchronizer
->getGroupRoleId('foo', 'baz'),
$this->groupRoleSynchronizer
->getGroupRoleId('bar', 'baz'),
];
$this
->assertEquals($expected, $this->groupRoleSynchronizer
->getGroupRoleIdsByUserRole('baz'));
}