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