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