function DefaultAccessCheckTest::setUp

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php \Drupal\Tests\Core\Access\DefaultAccessCheckTest::setUp()
  2. 10 core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php \Drupal\Tests\Core\Access\DefaultAccessCheckTest::setUp()
  3. 11.x core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php \Drupal\Tests\Core\Access\DefaultAccessCheckTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php, line 34

Class

DefaultAccessCheckTest
@coversDefaultClass \Drupal\Core\Access\DefaultAccessCheck @group Access

Namespace

Drupal\Tests\Core\Access

Code

protected function setUp() : void {
    parent::setUp();
    $this->account = $this->createMock('Drupal\\Core\\Session\\AccountInterface');
    $this->accessChecker = new DefaultAccessCheck();
}

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