You are here

protected function DefaultAccessCheckTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php \Drupal\Tests\Core\Access\DefaultAccessCheckTest::setUp()
  2. 9 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();
}