public function ListControllerTest::setUp in Entity Usage 8.4
Same name and namespace in other branches
- 8 tests/src/FunctionalJavascript/ListControllerTest.php \Drupal\Tests\entity_usage\FunctionalJavascript\ListControllerTest::setUp()
- 8.2 tests/src/FunctionalJavascript/ListControllerTest.php \Drupal\Tests\entity_usage\FunctionalJavascript\ListControllerTest::setUp()
- 8.3 tests/src/FunctionalJavascript/ListControllerTest.php \Drupal\Tests\entity_usage\FunctionalJavascript\ListControllerTest::setUp()
Overrides EntityUsageJavascriptTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ ListControllerTest.php, line 32
Class
- ListControllerTest
- Tests the page listing the usage of a given entity.
Namespace
Drupal\Tests\entity_usage\FunctionalJavascriptCode
public function setUp() {
parent::setUp();
// Grant the logged-in user permission to see the statistics page.
/** @var \Drupal\user\RoleInterface $role */
$role = Role::load('authenticated');
$this
->grantPermissions($role, [
'access entity usage statistics',
]);
}