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