protected function DependentAccessTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php \Drupal\Tests\block_content\Unit\Access\DependentAccessTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ block_content/ tests/ src/ Unit/ Access/ DependentAccessTest.php, line 37
Class
- DependentAccessTest
- @coversDefaultClass \Drupal\block_content\Access\RefinableDependentAccessTrait
Namespace
Drupal\Tests\block_content\Unit\AccessCode
protected function setUp() : void {
parent::setUp();
$this->account = $this
->prophesize(AccountInterface::class)
->reveal();
$this->forbidden = $this
->createAccessibleDouble(AccessResult::forbidden('Because I said so'));
$this->neutral = $this
->createAccessibleDouble(AccessResult::neutral('I have no opinion'));
}