class RemoteFileScanDirectoryTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php \Drupal\KernelTests\Core\File\RemoteFileScanDirectoryTest
- 10 core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php \Drupal\KernelTests\Core\File\RemoteFileScanDirectoryTest
- 9 core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php \Drupal\KernelTests\Core\File\RemoteFileScanDirectoryTest
- 7.x modules/simpletest/tests/file.test \RemoteFileScanDirectoryTest
Tests \Drupal\Core\File\FileSystemInterface::scanDirectory().
@coversDefaultClass \Drupal\Core\File\FileSystem
@group File
Hierarchy
- class \Drupal\KernelTests\Core\File\RemoteFileScanDirectoryTest extends \Drupal\KernelTests\Core\File\ScanDirectoryTest
Expanded class hierarchy of RemoteFileScanDirectoryTest
File
-
core/
tests/ Drupal/ KernelTests/ Core/ File/ RemoteFileScanDirectoryTest.php, line 11
Namespace
Drupal\KernelTests\Core\FileView source
class RemoteFileScanDirectoryTest extends ScanDirectoryTest {
/**
* Modules to enable.
*
* @var array
*/
public 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';
protected function setUp() {
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.