You are here

public function CardinalityTest::setUp in Entity Browser 8.2

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

Overrides EntityBrowserWebDriverTestBase::setUp

File

tests/src/FunctionalJavascript/CardinalityTest.php, line 35

Class

CardinalityTest
Tests the Cardinality handling.

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 cardinality entity browser pages',
    'bypass node access',
    'administer node form display',
    'access content',
  ]);
}