You are here

class TestInstallStorage in Drupal 10

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

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

}

Members