public function GroupContentOperationPermissionTest::testSetBundle in Organic groups 8
Tests setting the bundle for a group content permission.
@covers ::setBundle
@dataProvider groupContentOperationPermissionProvider
Parameters
array $values: Associative array of test values, keyed by property name.
File
- tests/
src/ Unit/ GroupContentOperationPermissionTest.php, line 75
Class
- GroupContentOperationPermissionTest
- Tests group content permissions.
Namespace
Drupal\Tests\og\UnitCode
public function testSetBundle(array $values) {
$permission = new GroupContentOperationPermission();
$permission
->setBundle($values['bundle']);
$this
->assertEquals($values['bundle'], $permission
->get('bundle'));
}