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