function ConfigImporterTest::customStep

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php \Drupal\KernelTests\Core\Config\ConfigImporterTest::customStep()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php \Drupal\KernelTests\Core\Config\ConfigImporterTest::customStep()
  3. 11.x core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php \Drupal\KernelTests\Core\Config\ConfigImporterTest::customStep()

Helper method to test custom config installer steps.

Parameters

array $context: Batch context.

\Drupal\Core\Config\ConfigImporter $importer: The config importer.

1 call to ConfigImporterTest::customStep()
ConfigImporterTest::testCustomStep in core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
Tests that the isConfigSyncing flag is set correctly during a custom step.

File

core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php, line 1059

Class

ConfigImporterTest
Tests importing configuration from files into active configuration.

Namespace

Drupal\KernelTests\Core\Config

Code

public static function customStep(array &$context, ConfigImporter $importer) {
    $context['is_syncing'] = \Drupal::isConfigSyncing();
}

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