function DefaultAccessCheckTest::setUp
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php \Drupal\Tests\Core\Access\DefaultAccessCheckTest::setUp()
- 10 core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php \Drupal\Tests\Core\Access\DefaultAccessCheckTest::setUp()
- 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\AccessCode
protected function setUp() {
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.