You are here

public function GroupPermissionTest::testSetName in Organic groups 8

Tests setting the name property of a permission.

@covers ::setName

@dataProvider groupPermissionProvider

Parameters

array $values: Associative array of test values, keyed by property name.

File

tests/src/Unit/GroupPermissionTest.php, line 110

Class

GroupPermissionTest
Group permissions tests.

Namespace

Drupal\Tests\og\Unit

Code

public function testSetName(array $values) {
  $permission = new GroupPermission();
  $permission
    ->setName($values['name']);
  $this
    ->assertEquals($values['name'], $permission
    ->get('name'));
}