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\UnitCode
public function testGetAccessControlHandler() {
$apple = [
'handlers' => [
'access' => TestGroupContentHandler::class,
],
];
$this
->setUpPluginDefinitions([
'apple' => $apple,
]);
$this
->assertInstanceOf(GroupContentHandlerBase::class, $this->groupContentEnablerManager
->getAccessControlHandler('apple'));
}