function LocaleDefaultConfigStorageTest::testGetComponentNames
Same name in other branches
- 10 core/modules/locale/tests/src/Kernel/LocaleDefaultConfigStorageTest.php \Drupal\Tests\locale\Kernel\LocaleDefaultConfigStorageTest::testGetComponentNames()
File
-
core/
modules/ locale/ tests/ src/ Kernel/ LocaleDefaultConfigStorageTest.php, line 23
Class
- LocaleDefaultConfigStorageTest
- @group locale
Namespace
Drupal\Tests\locale\KernelCode
public function testGetComponentNames() : void {
$storage = new LocaleDefaultConfigStorage(new NullStorage(), \Drupal::languageManager(), 'testing');
$expected = [
'locale_test.no_translation',
'locale_test.translation',
'locale_test.translation_multiple',
'locale_test_translate.settings',
'block.block.test_default_config',
];
$actual = $storage->getComponentNames('module', [
\Drupal::moduleHandler()->getModule('locale_test'),
\Drupal::moduleHandler()->getModule('locale_test_translate'),
]);
$this->assertSame($expected, $actual);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.