This test requires updating code.
Regression test
Go to mod/lesson/lib.php and put the following function at the end of the file.
function mod_lesson_get_shortcuts($defaultmodule) {
$item = (object) [
'title' => 'Things about lesson',
'name' => 'New lesson item',
'link' => new moodle_url('/mod/lesson/view.php', ['id' => 3])
];
return [$defaultmodule, $item];
}
Go to a course and open the activity picker "Add an activity or resource"
There should now be a new item under "Activities" with the same icon as the lesson called "Things about lesson".
Deprecated under MDL-45064 in Moodle 3.1
Also drop support for similar ltisource callback.
has to be done after
MDL-45064Option to add Preconfigured LTI Tool to Activity Chooser