public function GroupContentOperationPermissionTest::testGet in Organic groups 8
Tests getting a property from a group content permission.
@covers ::get
@dataProvider groupContentOperationPermissionProvider
Parameters
array $values: Associative array of test values, keyed by property name.
File
- tests/
src/ Unit/ GroupContentOperationPermissionTest.php, line 153
Class
- GroupContentOperationPermissionTest
- Tests group content permissions.
Namespace
Drupal\Tests\og\UnitCode
public function testGet(array $values) {
$permission = new GroupContentOperationPermission($values);
foreach ($values as $property => $value) {
$this
->assertEquals($value, $permission
->get($property));
}
}