You are here

protected function DownloadTest::setUp in Drupal 9

Same name in this branch
  1. 9 core/modules/file/tests/src/Functional/DownloadTest.php \Drupal\Tests\file\Functional\DownloadTest::setUp()
  2. 9 core/modules/migrate/tests/src/Kernel/process/DownloadTest.php \Drupal\Tests\migrate\Kernel\process\DownloadTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/file/tests/src/Functional/DownloadTest.php \Drupal\Tests\file\Functional\DownloadTest::setUp()

Overrides FileManagedTestBase::setUp

File

core/modules/file/tests/src/Functional/DownloadTest.php, line 26

Class

DownloadTest
Tests for download/file transfer functions.

Namespace

Drupal\Tests\file\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->fileUrlGenerator = $this->container
    ->get('file_url_generator');

  // Clear out any hook calls.
  file_test_reset();
}