mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 20:06:46 +02:00
MDL-60950 assign: Update incompatible unit test
Maintain compatibility with unit test changes after MDL-55609.
This commit is contained in:
parent
d4fea9b20f
commit
26f5750319
1 changed files with 10 additions and 5 deletions
|
@ -198,11 +198,16 @@ class mod_assign_locallib_testcase extends advanced_testcase {
|
||||||
public function test_gradingtable_filter_by_requiresgrading_no_grade() {
|
public function test_gradingtable_filter_by_requiresgrading_no_grade() {
|
||||||
global $PAGE;
|
global $PAGE;
|
||||||
|
|
||||||
$this->setUser($this->editingteachers[0]);
|
$this->resetAfterTest();
|
||||||
$params = array('assignsubmission_onlinetext_enabled' => 1,
|
|
||||||
'assignfeedback_comments_enabled' => 0,
|
$course = $this->getDataGenerator()->create_course();
|
||||||
'grade' => GRADE_TYPE_NONE);
|
$teacher = $this->getDataGenerator()->create_and_enrol($course, 'teacher');
|
||||||
$assign = $this->create_instance($params);
|
$this->setUser($teacher);
|
||||||
|
$assign = $this->create_instance($course, [
|
||||||
|
'assignsubmission_onlinetext_enabled' => 1,
|
||||||
|
'assignfeedback_comments_enabled' => 0,
|
||||||
|
'grade' => GRADE_TYPE_NONE
|
||||||
|
]);
|
||||||
|
|
||||||
$PAGE->set_url(new moodle_url('/mod/assign/view.php', array(
|
$PAGE->set_url(new moodle_url('/mod/assign/view.php', array(
|
||||||
'id' => $assign->get_course_module()->id,
|
'id' => $assign->get_course_module()->id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue