function RemoteFileSaveUploadTest::setUp

Same name and namespace in other branches
  1. 7.x modules/simpletest/tests/file.test \RemoteFileSaveUploadTest::setUp()
  2. 8.9.x core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php \Drupal\Tests\file\Functional\RemoteFileSaveUploadTest::setUp()
  3. 10 core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php \Drupal\Tests\file\Functional\RemoteFileSaveUploadTest::setUp()
  4. 11.x core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php \Drupal\Tests\file\Functional\RemoteFileSaveUploadTest::setUp()

Overrides SaveUploadTest::setUp

File

core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php, line 27

Class

RemoteFileSaveUploadTest
Tests the file uploading functions.

Namespace

Drupal\Tests\file\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->config('system.file')
        ->set('default_scheme', 'dummy-remote')
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.