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