'test_missing_base_theme.theme' =>
file_get_contents(DRUPAL_ROOT . '/core/tests/fixtures/test_missing_base_theme/test_missing_base_theme.theme'
),
],
],
],
$vfs_root);
} /**
* Tests exception is thrown.
*/
public function testMissingBaseThemeException() { $this->container->
get('extension.list.theme'
) ->
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.info.yml, see https://www.drupal.org/node/3066038'
);
$this->themeInstaller->
install(['test_missing_base_theme'
]);
}}/**
* Test theme extension list class.
*/