mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-72329 competency: Fix contextid comparison
This commit is contained in:
parent
ab4d4b4724
commit
306b070ac1
@ -185,7 +185,7 @@ class core_competency_api_testcase extends advanced_testcase {
|
||||
|
||||
// Trying to change the context.
|
||||
$this->expectException(coding_exception::class);
|
||||
api::update_template((object) array('id' => $template->get('id'), 'contextid' => context_coursecat::instance($cat->id)));
|
||||
api::update_template((object) ['id' => $template->get('id'), 'contextid' => context_coursecat::instance($cat->id)->id]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user