BlockTestBase::$adminUser

Same name in this branch
  1. 8.9.x core/modules/block/src/Tests/BlockTestBase.php \Drupal\block\Tests\BlockTestBase::adminUser
Same name in other branches
  1. 9 core/modules/block/tests/src/Functional/BlockTestBase.php \Drupal\Tests\block\Functional\BlockTestBase::adminUser
  2. 10 core/modules/block/tests/src/Functional/BlockTestBase.php \Drupal\Tests\block\Functional\BlockTestBase::adminUser
  3. 11.x core/modules/block/tests/src/Functional/BlockTestBase.php \Drupal\Tests\block\Functional\BlockTestBase::adminUser

A test user with administrative privileges.

Type: \Drupal\user\UserInterface

File

core/modules/block/tests/src/Functional/BlockTestBase.php, line 38

Class

BlockTestBase
Provides setup and helper methods for block module tests.

Namespace

Drupal\Tests\block\Functional

Code

protected $adminUser;

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