You are here

public function ConfigEntityTrackingTest::setUp in Entity Usage 8.2

Same name and namespace in other branches
  1. 8.4 tests/src/FunctionalJavascript/ConfigEntityTrackingTest.php \Drupal\Tests\entity_usage\FunctionalJavascript\ConfigEntityTrackingTest::setUp()
  2. 8.3 tests/src/FunctionalJavascript/ConfigEntityTrackingTest.php \Drupal\Tests\entity_usage\FunctionalJavascript\ConfigEntityTrackingTest::setUp()

Overrides EntityUsageJavascriptTestBase::setUp

File

tests/src/FunctionalJavascript/ConfigEntityTrackingTest.php, line 43

Class

ConfigEntityTrackingTest
Tests tracking of config entities.

Namespace

Drupal\Tests\entity_usage\FunctionalJavascript

Code

public function setUp() {
  parent::setUp();

  /** @var \Drupal\user\RoleInterface $role */
  $role = Role::load('authenticated');
  $this
    ->grantPermissions($role, [
    'access entity usage statistics',
    'administer blocks',
    'administer entity usage',
    'administer views',
    'administer webform',
  ]);
}