protected function DropzoneJsElementTest::setUp in DropzoneJS 8.2
Same name and namespace in other branches
- 8 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\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
/** @var \Drupal\user\RoleInterface $role */
$role = Role::create([
'id' => RoleInterface::ANONYMOUS_ID,
]);
$role
->grantPermission('dropzone upload files');
$role
->save();
}