Issue #3228963 by el7cosmos: Wrong path for Exception message in ThemeExtensionList

merge-requests/1112/head
Lee Rowlands 2021-08-20 14:18:11 +10:00
parent 923b2e65ac
commit 9b0462f130
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
2 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ class ThemeExtensionList extends ExtensionList {
$info = parent::createExtensionInfo($extension);
if (!isset($info['base theme'])) {
throw new InfoParserException(sprintf('Missing required key ("base theme") in %s/%s, see https://www.drupal.org/node/3066038', $extension->getExtensionPathname(), $extension->getExtensionFilename()));
throw new InfoParserException(sprintf('Missing required key ("base theme") in %s, see https://www.drupal.org/node/3066038', $extension->getPathname()));
}
// Remove the base theme when 'base theme: false' is set in a theme

View File

@ -72,7 +72,7 @@ class BaseThemeMissingTest extends KernelTestBase {
->setExtensionDiscovery(new ExtensionDiscovery('vfs://core'));
$this->expectException(InfoParserException::class);
$this->expectExceptionMessage('Missing required key ("base theme") in themes/test_missing_base_theme/test_missing_base_theme.theme/test_missing_base_theme.theme, see https://www.drupal.org/node/3066038');
$this->expectExceptionMessage('Missing required key ("base theme") in themes/test_missing_base_theme/test_missing_base_theme.info.yml, see https://www.drupal.org/node/3066038');
$this->themeInstaller->install(['test_missing_base_theme']);
}