Skip to content
Snippets Groups Projects
Commit 1d81444a authored by David Pesce's avatar David Pesce
Browse files

hoping these are the last two fixes to get tests to pass

parent 8331a05a
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class attempt_reviewed_test extends event_test {
protected function assert_output($input, $output) {
parent::assert_output($input, $output);
$this->assert_verb('http://activitystrea.ms/schema/1.0/start', 'started', $output['verb']);
$this->assert_verb('http://adlnet.gov/expapi/verbs/reviewed', 'reviewed', $output['verb']);
$this->assert_object('module', $input, $output['context']['contextActivities']['grouping'][2]);
$this->assert_object('course', $input, $output['context']['contextActivities']['grouping'][1]);
$this->assert_attempt($input, $output['object']);
......
......@@ -55,7 +55,6 @@ class attempt_submitted_test extends attempt_started_test {
protected function assert_attempt($input, $output) {
parent::assert_attempt($input, $output);
$this->assertEquals((float) $input->sumgrades, $output['attempt_score_raw']);
$this->assertEquals($input->state === 'submitted', $output['attempt_submitted']);
}
protected function assert_grade_items($input, $output) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment