public function GroupPermissionTest::testGetDefaultRoles in Organic groups 8
Tests getting the default roles assigned to a permission.
@covers ::getDefaultRoles
@dataProvider groupPermissionProvider
Parameters
array $values: Associative array of test values, keyed by property name.
File
- tests/
src/ Unit/ GroupPermissionTest.php, line 188
Class
- GroupPermissionTest
- Group permissions tests.
Namespace
Drupal\Tests\og\UnitCode
public function testGetDefaultRoles(array $values) {
$permission = new GroupPermission($values);
$this
->assertEquals($values['default roles'], $permission
->getDefaultRoles());
}