class TestInstallStorage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage
- 9 core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage
Tests configuration of profiles, modules and themes.
A test configuration storage to read configuration from all profiles, modules and themes regardless of installation status or installed profile.
Hierarchy
- class \Drupal\Core\Config\InstallStorage extends \Drupal\Core\Config\FileStorage
- class \Drupal\config_test\TestInstallStorage
Expanded class hierarchy of TestInstallStorage
2 files declare their use of TestInstallStorage
- DefaultConfigTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Config/ DefaultConfigTest.php - TestViewsTest.php in core/
modules/ views/ tests/ src/ Kernel/ TestViewsTest.php
File
- core/
modules/ config/ tests/ config_test/ src/ TestInstallStorage.php, line 14
Namespace
Drupal\config_testView source
class TestInstallStorage extends InstallStorage {
/**
* {@inheritdoc}
*/
protected function getAllFolders() {
if (!isset($this->folders)) {
$this->folders = $this
->getCoreNames();
$listing = new ExtensionDiscovery(\Drupal::root());
$listing
->setProfileDirectories([]);
$this->folders += $this
->getComponentNames($listing
->scan('profile'));
$this->folders += $this
->getComponentNames($listing
->scan('module'));
$this->folders += $this
->getComponentNames($listing
->scan('theme'));
}
return $this->folders;
}
}