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