diff --git a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php index d7348cd..4425df2 100644 --- a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php +++ b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php @@ -12,7 +12,6 @@ use Drupal\quickedit\MetadataGenerator; use Drupal\quickedit_test\MockEditEntityFieldAccessCheck; use Drupal\filter\Entity\FilterFormat; -use Drupal\Tests\quickedit\Kernel\QuickEditTestBase; /** * Tests in-place field editing metadata. diff --git a/core/modules/system/tests/src/Kernel/Token/TokenReplaceUnitTest.php b/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php similarity index 100% rename from core/modules/system/tests/src/Kernel/Token/TokenReplaceUnitTest.php rename to core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php index 9587ed2..fd31d36 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -21,6 +21,7 @@ use Drupal\Core\DrupalKernel; use Drupal\Core\Entity\Sql\SqlEntityStorageInterface; use Drupal\Core\Extension\ExtensionDiscovery; +use Drupal\Core\Language\Language; use Drupal\Core\Site\Settings; use Drupal\simpletest\AssertContentTrait; use Drupal\simpletest\AssertHelperTrait; @@ -609,6 +610,9 @@ public function register(ContainerBuilder $container) { $container ->setAlias('keyvalue', 'keyvalue.memory'); + // Set the default language on the minimal container. + $container->setParameter('language.default_values', $this->defaultLanguageData()); + if ($this->strictConfigSchema) { $container ->register('simpletest.config_schema_checker', 'Drupal\Core\Config\Testing\ConfigSchemaChecker') @@ -635,6 +639,16 @@ public function register(ContainerBuilder $container) { } /** + * Provides the data for setting the default language on the container. + * + * @return array + * The data array for the default language. + */ + protected function defaultLanguageData() { + return Language::$defaultValues; + } + + /** * Gets the config schema exclusions for this test. * * @return string[]