mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-47690-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
d2dbc373f8
2 changed files with 4 additions and 2 deletions
|
@ -589,7 +589,9 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
|
|||
$label = $this->getDataGenerator()->create_module('label', array('course' => $course->id,
|
||||
'intro' => $labeldescription));
|
||||
$labelcm = get_coursemodule_from_instance('label', $label->id);
|
||||
$url = $this->getDataGenerator()->create_module('url', array('course' => $course->id));
|
||||
$url = $this->getDataGenerator()->create_module('url', array('course' => $course->id,
|
||||
'name' => 'URL: % & $ ../'));
|
||||
$urlcm = get_coursemodule_from_instance('url', $url->id);
|
||||
|
||||
// Set the required capabilities by the external function.
|
||||
$context = context_course::instance($course->id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue