Skip to content
RemoteFileScanDirectoryTest.php 744 B
Newer Older
<?php

namespace Drupal\system\Tests\File;

/**
 * Tests the file_scan_directory() function.
 *
 * @group File
 */
class RemoteFileScanDirectoryTest extends ScanDirectoryTest {

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = array('file_test');

  /**
   * A stream wrapper scheme to register for the test.
   *
   * @var string
   */
  protected $scheme = 'dummy-remote';

  /**
   * A fully-qualified stream wrapper class name to register for the test.
   *
   * @var string
   */
  protected $classname = 'Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper';
    $this->config('system.file')->set('default_scheme', 'dummy-remote')->save();