class TestInstallStorage

Same name and namespace in other branches
  1. 11.x core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage
  2. 10 core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage
  3. 8.9.x 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

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_test
View 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;
  }

}

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