mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-72329 competency: Fix contextid comparison
This commit is contained in:
parent
ab4d4b4724
commit
306b070ac1
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ class core_competency_api_testcase extends advanced_testcase {
|
||||||
|
|
||||||
// Trying to change the context.
|
// Trying to change the context.
|
||||||
$this->expectException(coding_exception::class);
|
$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…
Add table
Add a link
Reference in a new issue