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