protected function MenuAccessControlHandlerTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php \Drupal\Tests\system\Kernel\MenuAccessControlHandlerTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ tests/ src/ Kernel/ MenuAccessControlHandlerTest.php, line 42
Class
- MenuAccessControlHandlerTest
- @coversDefaultClass \Drupal\system\MenuAccessControlHandler @group system
Namespace
Drupal\Tests\system\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('menu');
$this
->installEntitySchema('user');
$this
->installSchema('system', 'sequences');
$this->accessControlHandler = $this->container
->get('entity_type.manager')
->getAccessControlHandler('menu');
}