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