Unverified Commit 764427c4 authored by larowlan's avatar larowlan
Browse files

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

(cherry picked from commit 9b0462f1)
parent a310e7a2
......@@ -266,7 +266,7 @@ protected function createExtensionInfo(Extension $extension) {
$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
......
......@@ -75,7 +75,7 @@ public function testMissingBaseThemeException() {
->setInfoParser(new VfsInfoParser('vfs:/'));
$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']);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment