class RemoteFileSaveUploadTest

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

Tests the file uploading functions.

@group file

Hierarchy

Expanded class hierarchy of RemoteFileSaveUploadTest

File

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

Namespace

Drupal\Tests\file\Functional
View source
class RemoteFileSaveUploadTest extends SaveUploadTest {
  
  /**
   * Modules to enable.
   *
   * @var array
   */
  protected static $modules = [
    'file_test',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * {@inheritdoc}
   */
  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.