function FileTestBase::setUp
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/File/FileTestBase.php \Drupal\KernelTests\Core\File\FileTestBase::setUp()
- 8.9.x core/tests/Drupal/KernelTests/Core/File/FileTestBase.php \Drupal\KernelTests\Core\File\FileTestBase::setUp()
- 11.x core/tests/Drupal/KernelTests/Core/File/FileTestBase.php \Drupal\KernelTests\Core\File\FileTestBase::setUp()
Overrides KernelTestBase::setUp
13 calls to FileTestBase::setUp()
- ArchiverTestBase::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Archiver/ ArchiverTestBase.php - DownloadTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ process/ DownloadTest.php - FileCopyTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ process/ FileCopyTest.php - FileUrlGeneratorTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ File/ FileUrlGeneratorTest.php - LegacyFileSystemTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ File/ LegacyFileSystemTest.php
13 methods override FileTestBase::setUp()
- ArchiverTestBase::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Archiver/ ArchiverTestBase.php - DownloadTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ process/ DownloadTest.php - FileCopyTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ process/ FileCopyTest.php - FileUrlGeneratorTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ File/ FileUrlGeneratorTest.php - LegacyFileSystemTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ File/ LegacyFileSystemTest.php
File
-
core/
tests/ Drupal/ KernelTests/ Core/ File/ FileTestBase.php, line 37
Class
- FileTestBase
- Provides file-specific assertions and helper functions.
Namespace
Drupal\KernelTests\Core\FileCode
protected function setUp() : void {
parent::setUp();
// \Drupal\KernelTests\KernelTestBase::bootKernel() sets a global override
// for the default scheme because core relies on it in
// file_default_scheme(). As we are creating the configuration here remove
// the global override.
unset($GLOBALS['config']['system.file']);
\Drupal::configFactory()->getEditable('system.file')
->set('default_scheme', 'public')
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.