mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
fixup! MDL-73273 navigation: Add checks to enforce action param types
This commit is contained in:
parent
bdf4f8a651
commit
4071bf3fb2
@ -702,14 +702,14 @@ class secondary_test extends \advanced_testcase {
|
||||
"Container node with external action and external children" => [
|
||||
[
|
||||
'parentnode1' => [
|
||||
'action' => '/test.php',
|
||||
'action' => 'https://example.com',
|
||||
'children' => [
|
||||
'child2.1' => 'https://example.org',
|
||||
'child2.2' => 'https://example.net',
|
||||
]
|
||||
]
|
||||
],
|
||||
['parentnode', 'parentnode1']
|
||||
['parentnode', 'parentnode1', 'child2.1', 'child2.2']
|
||||
],
|
||||
"Container node with external action and internal children" => [
|
||||
[
|
||||
@ -723,6 +723,18 @@ class secondary_test extends \advanced_testcase {
|
||||
],
|
||||
['parentnode', 'parentnode1', 'child2.1', 'child2.2']
|
||||
],
|
||||
"Container node with internal actions and internal children" => [
|
||||
[
|
||||
'parentnode1' => [
|
||||
'action' => '/test.php',
|
||||
'children' => [
|
||||
'child2.1' => '/course.php',
|
||||
'child2.2' => '/admin.php',
|
||||
]
|
||||
]
|
||||
],
|
||||
['parentnode', 'parentnode1']
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user