protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://adlnet.gov/expapi/verbs/launched', 'launched', $output['verb']); $this->assertObject('module', $input, $output['object']); $this->assertObject('course', $input, $output['context']['contextActivities']['grouping'][1]); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://www.tincanapi.co.uk/verbs/enrolled_onto_learning_plan', 'enrolled onto', $output['verb']); $this->assertObject('course', $input, $output['object']); $this->assertUser($input, $output['context']['instructor'], 'instructor'); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://id.tincanapi.com/verb/viewed', 'viewed', $output['verb']); $this->assertObject('module', $input, $output['object']); $this->assertObject('course', $input, $output['context']['contextActivities']['grouping'][1]); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://activitystrea.ms/schema/1.0/start', 'started', $output['verb']); $this->assertObject('module', $input, $output['context']['contextActivities']['grouping'][2]); $this->assertObject('course', $input, $output['context']['contextActivities']['grouping'][1]); $this->assertAttempt($input, $output['object']); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://www.tincanapi.co.uk/verbs/evaluated', 'evaluated', $output['verb']); $this->assertObject('module', $input, $output['context']['contextActivities']['grouping'][2]); $this->assertObject('course', $input, $output['context']['contextActivities']['grouping'][1]); $this->assertEquals($input['grade_result'], $output['result']['score']['raw']); $this->assertEquals(true, $output['result']['completion']); $this->assertUser($input, $output['object'], 'graded_user'); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertUser($input, $output['actor'], 'user'); $this->assertVerb('http://adlnet.gov/expapi/verbs/registered', 'registered for', $output['verb']); $this->assertObject('session', $input, $output['object']); $this->assertObject('module', $input, $output['context']['contextActivities']['parent'][0]); $this->assertObject('course', $input, $output['context']['contextActivities']['grouping'][1]); $this->assertEquals('http://xapi.trainingevidencesystems.com/recipes/attendance/0_0_1#detailed', $output['context']['contextActivities']['category'][1]['id']); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://adlnet.gov/expapi/verbs/completed', 'completed', $output['verb']); $this->assertObject('module', $input, $output['context']['contextActivities']['grouping'][2]); $this->assertObject('course', $input, $output['context']['contextActivities']['grouping'][1]); $this->assertAttempt($input, $output['object']); $this->assertEquals($input['attempt_result'], $output['result']['score']['raw']); $this->assertEquals($input['attempt_completed'], $output['result']['completion']); $this->assertEquals($input['attempt_duration'], $output['result']['duration']); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://adlnet.gov/expapi/verbs/answered', 'answered', $output['verb']); $this->assertEquals($input['attempt_url'], $output['context']['contextActivities']['grouping'][2]['id']); $this->assertObject('course', $input, $output['context']['contextActivities']['grouping'][1]); $this->assertObject('module', $input, $output['context']['contextActivities']['parent'][0]); $this->assertObject('question', $input, $output['object']); $this->assertEquals($input['interaction_type'], $output['object']['definition']['interactionType']); $this->assertEquals($input['interaction_correct_responses'], $output['object']['definition']['correctResponsesPattern']); $this->assertComponentList($input['interaction_choices'], $output['object']['definition']['choices'], $input['context_lang']); $this->assertEquals($input['attempt_score_raw'], $output['result']['score']['raw']); $this->assertEquals($input['attempt_score_min'], $output['result']['score']['min']); $this->assertEquals($input['attempt_score_max'], $output['result']['score']['max']); $this->assertEquals($input['attempt_score_scaled'], $output['result']['score']['scaled']); $this->assertEquals($input['attempt_success'], $output['result']['success']); $this->assertEquals($input['attempt_completed'], $output['result']['completion']); $this->assertEquals($input['attempt_response'], $output['result']['response']); }
/** * Asserts the output is the same as the input. * @param $input * @param $output */ protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://adlnet.gov/expapi/verbs/completed', 'completed', $output['verb']); $this->assertObject('course', $input, $output['object']); }
protected function constructInput() { return array_merge(parent::constructInput(), $this->contructObject('course'), $this->contructObject('module'), $this->constructUser('graded_user'), ['grade_score_raw' => 47, 'grade_score_min' => 0, 'grade_score_max' => 100, 'grade_score_scaled' => 0.47, 'grade_success' => true, 'grade_completed' => true, 'grade_comment' => 'test comment from instructor']); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://adlnet.gov/expapi/verbs/registered', 'registered to', $output['verb']); $this->assertObject('app', $input, $output['object']); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('https://brindlewaye.com/xAPITerms/verbs/loggedout/', 'logged out of', $output['verb']); $this->assertObject('app', $input, $output['object']); }
protected function assertOutput($input, $output) { parent::assertOutput($input, $output); $this->assertVerb('http://id.tincanapi.com/verb/viewed', 'viewed', $output['verb']); $this->assertObject('course', $input, $output['object']); }
protected function constructInput() { return array_merge(parent::constructInput(), $this->contructObject('course'), $this->contructObject('module'), $this->contructObject('session', 'http://activitystrea.ms/schema/1.0/event'), $this->constructUser('attendee'), ["attempt_duration" => "PT150S", "attempt_completion" => true]); }