You are here

public function EntityReferenceWidgetTest::setUp in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php \Drupal\Tests\entity_browser\FunctionalJavascript\EntityReferenceWidgetTest::setUp()

Overrides EntityBrowserWebDriverTestBase::setUp

File

tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php, line 22

Class

EntityReferenceWidgetTest
Tests the Entity Reference Widget.

Namespace

Drupal\Tests\entity_browser\FunctionalJavascript

Code

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

  /** @var \Drupal\user\RoleInterface $role */
  $role = Role::load('authenticated');
  $this
    ->grantPermissions($role, [
    'access test_entity_browser_iframe_node_view entity browser pages',
    'bypass node access',
    'administer node form display',
    'access contextual links',
  ]);
}