You are here

public function GroupContentEnablerManagerTest::testGetPermissionProvider in Group 8

Tests the getPermissionProvider() method.

@covers ::getPermissionProvider

File

tests/src/Unit/GroupContentEnablerManagerTest.php, line 235

Class

GroupContentEnablerManagerTest
Tests the GroupContentEnabler plugin manager.

Namespace

Drupal\Tests\group\Unit

Code

public function testGetPermissionProvider() {
  $apple = [
    'handlers' => [
      'permission_provider' => TestGroupContentHandler::class,
    ],
  ];
  $this
    ->setUpPluginDefinitions([
    'apple' => $apple,
  ]);
  $this
    ->assertInstanceOf(GroupContentHandlerBase::class, $this->groupContentEnablerManager
    ->getPermissionProvider('apple'));
}