public function UploadWidgetTest::setUp in Entity Browser 8.2
Same name and namespace in other branches
- 8 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\FunctionalJavascriptCode
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',
]);
}