function PermissionCheckerTest::setUp

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php \Drupal\Tests\Core\Session\PermissionCheckerTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php, line 45

Class

PermissionCheckerTest
@coversDefaultClass \Drupal\Core\Session\PermissionChecker @group Session

Namespace

Drupal\Tests\Core\Session

Code

protected function setUp() : void {
    parent::setUp();
    $this->processor = $this->prophesize(AccessPolicyProcessorInterface::class);
    $this->checker = new PermissionChecker($this->processor
        ->reveal());
    $this->account = $this->prophesize(AccountInterface::class)
        ->reveal();
}

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