function MenuAccessControlHandlerTest::setUp
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php \Drupal\Tests\system\Kernel\MenuAccessControlHandlerTest::setUp()
- 10 core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php \Drupal\Tests\system\Kernel\MenuAccessControlHandlerTest::setUp()
- 11.x 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 <a href="/api/drupal/core%21modules%21system%21src%21MenuAccessControlHandler.php/class/MenuAccessControlHandler/8.9.x" title="Defines the access control handler for the menu entity type." class="local">\Drupal\system\MenuAccessControlHandler</a> @group system
Namespace
Drupal\Tests\system\KernelCode
protected function setUp() {
parent::setUp();
$this->installEntitySchema('menu');
$this->installEntitySchema('user');
$this->installSchema('system', 'sequences');
$this->accessControlHandler = $this->container
->get('entity_type.manager')
->getAccessControlHandler('menu');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.