You are here

protected function DropzoneJsUploadControllerTest::setUp in DropzoneJS 8.2

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

Overrides KernelTestBase::setUp

File

tests/src/Kernel/DropzoneJsUploadControllerTest.php, line 58

Class

DropzoneJsUploadControllerTest
Tests DropzoneJS upload controller.

Namespace

Drupal\Tests\dropzonejs\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig('dropzonejs');
  $this
    ->installEntitySchema('user');
  $this->filesDir = $this->siteDirectory . '/files';
  $this
    ->setSetting('file_temp_path', $this->filesDir);
  $this->tmpFile = tempnam('', $this->testfilePrefix);
  file_put_contents($this->tmpFile, $this->testfileData);
}