You are here

public function UploadWidgetTest::setUp in Entity Browser 8

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

Overrides EntityBrowserWebDriverTestBase::setUp

File

tests/src/FunctionalJavascript/UploadWidgetTest.php, line 17

Class

UploadWidgetTest
Tests the Upload Widget.

Namespace

Drupal\Tests\entity_browser\FunctionalJavascript

Code

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

  // Grant permission to this user to use also the EB page we are testing.

  /** @var \Drupal\user\RoleInterface $role */
  $role = Role::load('authenticated');
  $this
    ->grantPermissions($role, [
    'access test_entity_browser_standalone_upload entity browser pages',
  ]);
}