public function ConfigInstallTest::testIdMisMatch in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php \Drupal\KernelTests\Core\Config\ConfigInstallTest::testIdMisMatch()
- 9 core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php \Drupal\KernelTests\Core\Config\ConfigInstallTest::testIdMisMatch()
Tests installing configuration where the filename and ID do not match.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigInstallTest.php, line 250
Class
- ConfigInstallTest
- Tests installation of configuration objects in installation functionality.
Namespace
Drupal\KernelTests\Core\ConfigCode
public function testIdMisMatch() {
$this
->expectWarning();
$this
->expectWarningMessage('The configuration name "config_test.dynamic.no_id_match" does not match the ID "does_not_match"');
$this
->installModules([
'config_test_id_mismatch',
]);
}