protected function DependentAccessTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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() {
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'));
}