mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-78673 behat: Allow plugins to define their expansion of >
This commit is contained in:
parent
f29f757f5f
commit
e0c28bebcb
@ -620,8 +620,8 @@ class behat_navigation extends behat_base {
|
||||
$dividercount = substr_count($page, ' > ');
|
||||
if ($dividercount === 0) {
|
||||
return ['core', $page];
|
||||
} else if ($dividercount === 1) {
|
||||
list($component, $name) = explode(' > ', $page);
|
||||
} else if ($dividercount >= 1) {
|
||||
[$component, $name] = explode(' > ', $page, 2);
|
||||
if ($component === 'core') {
|
||||
throw new coding_exception('Do not specify the component "core > ..." for core pages.');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user