function DateFormatAccessControlHandlerTest::setUp

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php \Drupal\Tests\system\Kernel\DateFormatAccessControlHandlerTest::setUp()
  2. 8.9.x core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php \Drupal\Tests\system\Kernel\DateFormatAccessControlHandlerTest::setUp()
  3. 10 core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php \Drupal\Tests\system\Kernel\DateFormatAccessControlHandlerTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php, line 45

Class

DateFormatAccessControlHandlerTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21system%21src%21DateFormatAccessControlHandler.php/class/DateFormatAccessControlHandler/11.x" title="Defines the access control handler for the date format entity type." class="local">\Drupal\system\DateFormatAccessControlHandler</a> @group system

Namespace

Drupal\Tests\system\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('user');
    $this->accessControlHandler = $this->container
        ->get('entity_type.manager')
        ->getAccessControlHandler('date_format');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.