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

This commit is contained in:
Simey Lameze
2025-02-20 12:00:59 +08:00
parent 0fe4411848
commit 346e9a792b
+1 -1
View File
@@ -166,7 +166,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.