RemoteFileSaveUploadTest.php

Definition of Drupal\file\Tests\RemoteFileSaveUploadTest.

Namespace

Drupal\file\Tests

File

drupal/core/modules/file/lib/Drupal/file/Tests/RemoteFileSaveUploadTest.php
View source
<?php

/**
 * @file
 * Definition of Drupal\file\Tests\RemoteFileSaveUploadTest.
 */
namespace Drupal\file\Tests;


/**
 * Tests the file_save_upload() function on remote filesystems.
 */
class RemoteFileSaveUploadTest extends SaveUploadTest {

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = array(
    'file_test',
  );
  public static function getInfo() {
    $info = parent::getInfo();
    $info['group'] = 'File API (remote)';
    return $info;
  }
  function setUp() {
    parent::setUp();
    config('system.file')
      ->set('default_scheme', 'dummy-remote')
      ->save();
  }

}

Classes

Namesort descending Description
RemoteFileSaveUploadTest Tests the file_save_upload() function on remote filesystems.