Skip to content

Commit

Permalink
MDL-70967 enrol_meta: fix error in unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Feb 22, 2021
1 parent a93828a commit ef99a58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enrol/meta/tests/plugin_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,8 @@ public function test_edit_instance_validation() {
$this->assertArrayHasKey('customint2', $errors);

// Test with valid data.
$validgroup = reset($groups);
reset($groups);
$validgroup = key($groups);
$data = [
'customint1' => [$metacourse2->id],
'customint2' => $validgroup
Expand Down

0 comments on commit ef99a58

Please sign in to comment.