protected function DefaultAccessCheckTest::setUp in Drupal 8
Same name and namespace in other branches
- 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\AccessCode
protected function setUp() {
parent::setUp();
$this->account = $this
->createMock('Drupal\\Core\\Session\\AccountInterface');
$this->accessChecker = new DefaultAccessCheck();
}