MDL-84448 behat: return null if theme has no config

This commit is contained in:
Simey Lameze
2025-02-20 11:59:01 +08:00
parent 817f6c206e
commit abf49b105d
+1 -1
View File
@@ -152,7 +152,7 @@ class behat_context_helper {
$themeconfig = theme_config::load($suitename);
} catch (Exception $e) {
// This theme has no theme config.
return [];
return null;
}
// The theme will use all core contexts, except the one overridden by theme or its parent.