fixup! MDL-73273 navigation: Add checks to enforce action param types

This commit is contained in:
Peter Dias 2022-02-18 09:11:57 +08:00
parent bdf4f8a651
commit 4071bf3fb2

View File

@ -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']
],
];
}