You are here

public function GroupContentOperationPermissionTest::testGetBundle in Organic groups 8

Tests getting the bundle from a group content permission.

@covers ::getBundle

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

tests/src/Unit/GroupContentOperationPermissionTest.php, line 60

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testGetBundle(array $values) {
  $permission = new GroupContentOperationPermission($values);
  $this
    ->assertEquals($values['bundle'], $permission
    ->getBundle());
}