RemoteFileScanDirectoryTest.php

Same filename and directory in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php
  2. 8.9.x core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php
  3. 10 core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php

Namespace

Drupal\KernelTests\Core\File

File

core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\KernelTests\Core\File;


/**
 * Tests \Drupal\Core\File\FileSystemInterface::scanDirectory().
 *
 * @coversDefaultClass \Drupal\Core\File\FileSystem
 * @group File
 */
class RemoteFileScanDirectoryTest extends ScanDirectoryTest {
    
    /**
     * Modules to enable.
     *
     * @var array
     */
    protected static $modules = [
        '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';
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->config('system.file')
            ->set('default_scheme', 'dummy-remote')
            ->save();
    }

}

Classes

Title Deprecated Summary
RemoteFileScanDirectoryTest Tests \Drupal\Core\File\FileSystemInterface::scanDirectory().

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