RemoteFileSaveUploadTest.php

Same filename and directory in other branches
  1. 10 core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php
  2. 11.x core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php
  3. 9 core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php
  4. 8.9.x core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php

Namespace

Drupal\Tests\file\Functional

File

core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\file\Functional;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests the file uploading functions.
 */
class RemoteFileSaveUploadTest extends SaveUploadTest {
  
  /**
   * {@inheritdoc}
   */
  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();
  }

}

Classes

Title Deprecated Summary
RemoteFileSaveUploadTest Tests the file uploading functions.

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