You are here

protected function DropzoneJsElementTest::setUp in DropzoneJS 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/DropzoneJsElementTest.php \Drupal\Tests\dropzonejs\Kernel\DropzoneJsElementTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/DropzoneJsElementTest.php, line 32

Class

DropzoneJsElementTest
Tests related to the dropzoneJs element.

Namespace

Drupal\Tests\dropzonejs\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', 'router');
  $this
    ->installEntitySchema('user');

  /** @var \Drupal\user\RoleInterface $role */
  $role = Role::create([
    'id' => RoleInterface::ANONYMOUS_ID,
  ]);
  $role
    ->grantPermission('dropzone upload files');
  $role
    ->save();
}