function ConfigImportCommandTest::commandTester

Builds a command tester for the 'config:import' command.

6 calls to ConfigImportCommandTest::commandTester()
ConfigImportCommandTest::testBatchErrors in core/tests/Drupal/FunctionalTests/Core/Config/ConfigImportCommandTest.php
Tests that errors set in the batch and on the ConfigImporter are merged.
ConfigImportCommandTest::testImport in core/tests/Drupal/FunctionalTests/Core/Config/ConfigImportCommandTest.php
Tests importing configuration.
ConfigImportCommandTest::testImportErrorLog in core/tests/Drupal/FunctionalTests/Core/Config/ConfigImportCommandTest.php
Tests an import that results in an error.
ConfigImportCommandTest::testImportLock in core/tests/Drupal/FunctionalTests/Core/Config/ConfigImportCommandTest.php
Tests concurrent importing of configuration.
ConfigImportCommandTest::testImportSiteUuidValidation in core/tests/Drupal/FunctionalTests/Core/Config/ConfigImportCommandTest.php
Tests verification of site UUID before importing configuration.

... See full list

File

core/tests/Drupal/FunctionalTests/Core/Config/ConfigImportCommandTest.php, line 420

Class

ConfigImportCommandTest
Tests the 'config:import' command.

Namespace

Drupal\FunctionalTests\Core\Config

Code

private function commandTester() : CommandTester {
  $command = new ConfigImportCommand($this->container
    ->get('config.storage'), $this->container
    ->get('config.storage.sync'), $this->container
    ->get(ImportStorageTransformer::class), $this->container
    ->get(ConfigImporterFactory::class));
  return new CommandTester($command);
}

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