You are here

public function GroupContentEnablerManagerTest::testGetAccessControlHandler in Group 8

Tests the getAccessControlHandler() method.

@covers ::getAccessControlHandler

File

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

Class

GroupContentEnablerManagerTest
Tests the GroupContentEnabler plugin manager.

Namespace

Drupal\Tests\group\Unit

Code

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