diff --git a/composer.json b/composer.json index 5e51935a1..1a73039b2 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,12 @@ { - "name": "xapi-vle/moodle-logstore-xapi", - "license": "GPL v3", - "require-dev": { - "learninglocker/statementfactory": "~0.0" - }, - "require": { - "ext-json": "*" - }, - "prefer-stable": true, - "minimum-stability": "dev" -} \ No newline at end of file + "name": "xapi-vle/moodle-logstore-xapi", + "license": "GPL v3", + "require-dev": { + "learninglocker/statementfactory": "~0.0" + }, + "require": { + "ext-json": "*" + }, + "prefer-stable": true, + "minimum-stability": "dev" +} diff --git a/tests/common/event.json b/tests/common/event.json index 2c63c0851..0967ef424 100644 --- a/tests/common/event.json +++ b/tests/common/event.json @@ -1,2 +1 @@ -{ -} +{} diff --git a/tests/common/statement.json b/tests/common/statement.json index 7dca9984e..4b6746b3a 100644 --- a/tests/common/statement.json +++ b/tests/common/statement.json @@ -1,7 +1,7 @@ { - "timestamp": "2015-06-10T14:31:41.000Z", - "context": { - "platform": "Moodle", - "registration": "58028332-2277-5b51-a632-7836992917ea" - } + "timestamp": "2015-06-10T14:31:41.000Z", + "context": { + "platform": "Moodle", + "registration": "58028332-2277-5b51-a632-7836992917ea" + } } diff --git a/tests/core/badge_awarded/user_achieved_badge/event.json b/tests/core/badge_awarded/user_achieved_badge/event.json index 89e8ecfe2..17cd4b02f 100644 --- a/tests/core/badge_awarded/user_achieved_badge/event.json +++ b/tests/core/badge_awarded/user_achieved_badge/event.json @@ -1,10 +1,10 @@ { - "id":1, - "eventname":"\\core\\event\\badge_awarded", - "timecreated": 1433946701, - "relateduserid": 1, - "courseid": 1, - "objectid": 1, - "other": "a:1:{s:13:\"badgeissuedid\";i:2;}", - "objecttable": "badge" + "id": 1, + "eventname": "\\core\\event\\badge_awarded", + "timecreated": 1433946701, + "relateduserid": 1, + "courseid": 1, + "objectid": 1, + "other": "a:1:{s:13:\"badgeissuedid\";i:2;}", + "objecttable": "badge" } diff --git a/tests/core/calendar_event_created/user_created_calendar_event/data.json b/tests/core/calendar_event_created/user_created_calendar_event/data.json index 34d2389e1..a56463a3a 100644 --- a/tests/core/calendar_event_created/user_created_calendar_event/data.json +++ b/tests/core/calendar_event_created/user_created_calendar_event/data.json @@ -1,25 +1,25 @@ { - "course" : [ - { - "fullname" : "test_course_name", - "id" : 1, - "lang" : "en", - "summary" : "test_course_summary" - } - ], - "event" : [ - { - "id" : 1, - "name" : "test event" - } - ], - "user" : [ - { - "email" : "creator@test.com", - "firstname" : "event_creator_firstname", - "id" : 1, - "lastname" : "event_creator_lastname", - "username" : "creator" - } - ] + "course": [ + { + "fullname": "test_course_name", + "id": 1, + "lang": "en", + "summary": "test_course_summary" + } + ], + "event": [ + { + "id": 1, + "name": "test event" + } + ], + "user": [ + { + "email": "creator@test.com", + "firstname": "event_creator_firstname", + "id": 1, + "lastname": "event_creator_lastname", + "username": "creator" + } + ] } diff --git a/tests/core/calendar_event_created/user_created_calendar_event/event.json b/tests/core/calendar_event_created/user_created_calendar_event/event.json index 73939eb8f..6316e8a5d 100644 --- a/tests/core/calendar_event_created/user_created_calendar_event/event.json +++ b/tests/core/calendar_event_created/user_created_calendar_event/event.json @@ -1,9 +1,9 @@ { - "courseid" : 1, - "eventname" : "\\core\\event\\calendar_event_created", - "id" : 1, - "objectid" : 1, - "objecttable" : "event", - "timecreated" : 1433946701, - "userid" : 1 + "courseid": 1, + "eventname": "\\core\\event\\calendar_event_created", + "id": 1, + "objectid": 1, + "objecttable": "event", + "timecreated": 1433946701, + "userid": 1 } diff --git a/tests/core/calendar_event_created/user_created_calendar_event/statements.json b/tests/core/calendar_event_created/user_created_calendar_event/statements.json index 35f5cea74..4cfb75a0b 100644 --- a/tests/core/calendar_event_created/user_created_calendar_event/statements.json +++ b/tests/core/calendar_event_created/user_created_calendar_event/statements.json @@ -1,60 +1,60 @@ [ - { - "actor" : { - "account" : { - "homePage" : "http://www.example.org", - "name" : "1" - }, - "name" : "event_creator_firstname event_creator_lastname" + { + "actor": { + "account": { + "homePage": "http://www.example.org", + "name": "1" }, - "context" : { - "contextActivities" : { - "category" : [ - { - "definition" : { - "name" : { - "en" : "test_course_name" - }, - "type" : "http://id.tincanapi.com/activitytype/lms" - }, - "id" : "http://www.example.org" - } - ], - "parent" : [ - { - "definition" : { - "name" : { - "en" : "test_course_name" - }, - "type" : "https://w3id.org/xapi/cmi5/activitytype/course" - }, - "id" : "http://www.example.org/course/view.php?id=1" - } - ] - }, - "extensions" : { - "http://lrs.learninglocker.net/define/extensions/info" : { - "event_function" : "\\src\\transformer\\events\\core\\calendar_event_created", - "event_name" : "\\core\\event\\calendar_event_created", - "http://moodle.org" : "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi" : "0.0.0-development" - } - } - }, - "object" : { - "definition" : { - "name" : { - "en" : "test event" + "name": "event_creator_firstname event_creator_lastname" + }, + "context": { + "contextActivities": { + "category": [ + { + "definition": { + "name": { + "en": "test_course_name" + }, + "type": "http://id.tincanapi.com/activitytype/lms" + }, + "id": "http://www.example.org" + } + ], + "parent": [ + { + "definition": { + "name": { + "en": "test_course_name" + }, + "type": "https://w3id.org/xapi/cmi5/activitytype/course" }, - "type" : "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/calendar-event" - }, - "id" : "http://www.example.org/calendar/view?id=1" + "id": "http://www.example.org/course/view.php?id=1" + } + ] }, - "verb" : { - "display" : { - "en" : "Created" - }, - "id" : "http://activitystrea.ms/create" + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "event_function": "\\src\\transformer\\events\\core\\calendar_event_created", + "event_name": "\\core\\event\\calendar_event_created", + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development" + } } - } + }, + "object": { + "definition": { + "name": { + "en": "test event" + }, + "type": "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/calendar-event" + }, + "id": "http://www.example.org/calendar/view?id=1" + }, + "verb": { + "display": { + "en": "Created" + }, + "id": "http://activitystrea.ms/create" + } + } ] diff --git a/tests/core/calendar_event_deleted/user_deleted_calendar_event/data.json b/tests/core/calendar_event_deleted/user_deleted_calendar_event/data.json index d0ae6a90b..e3e8d3fdc 100644 --- a/tests/core/calendar_event_deleted/user_deleted_calendar_event/data.json +++ b/tests/core/calendar_event_deleted/user_deleted_calendar_event/data.json @@ -1,19 +1,19 @@ { - "course" : [ - { - "fullname" : "test_course_name", - "id" : 1, - "lang" : "en", - "summary" : "test_course_summary" - } - ], - "event" : [], - "user" : [ - { - "email" : "deleter@test.com", - "firstname" : "event_deleter_firstname", - "id" : 1, - "lastname" : "event_deleter_lastname" - } - ] + "course": [ + { + "fullname": "test_course_name", + "id": 1, + "lang": "en", + "summary": "test_course_summary" + } + ], + "event": [], + "user": [ + { + "email": "deleter@test.com", + "firstname": "event_deleter_firstname", + "id": 1, + "lastname": "event_deleter_lastname" + } + ] } diff --git a/tests/core/calendar_event_deleted/user_deleted_calendar_event/event.json b/tests/core/calendar_event_deleted/user_deleted_calendar_event/event.json index 44402b823..4779cb711 100644 --- a/tests/core/calendar_event_deleted/user_deleted_calendar_event/event.json +++ b/tests/core/calendar_event_deleted/user_deleted_calendar_event/event.json @@ -1,10 +1,10 @@ { - "courseid" : 1, - "eventname" : "\\core\\event\\calendar_event_deleted", - "id" : 1, - "objectid" : 1, - "objecttable" : "event", - "other" : "a:1:{s:4:\"name\";s:10:\"test event\";}", - "timecreated" : 1433946701, - "userid" : 1 + "courseid": 1, + "eventname": "\\core\\event\\calendar_event_deleted", + "id": 1, + "objectid": 1, + "objecttable": "event", + "other": "a:1:{s:4:\"name\";s:10:\"test event\";}", + "timecreated": 1433946701, + "userid": 1 } diff --git a/tests/core/calendar_event_deleted/user_deleted_calendar_event/statements.json b/tests/core/calendar_event_deleted/user_deleted_calendar_event/statements.json index ce9e21136..8f54290e6 100644 --- a/tests/core/calendar_event_deleted/user_deleted_calendar_event/statements.json +++ b/tests/core/calendar_event_deleted/user_deleted_calendar_event/statements.json @@ -1,61 +1,61 @@ [ - { - "actor" : { - "account" : { - "homePage" : "http://www.example.org", - "name" : "1" - }, - "name" : "event_deleter_firstname event_deleter_lastname" + { + "actor": { + "account": { + "homePage": "http://www.example.org", + "name": "1" }, - "context" : { - "contextActivities" : { - "category" : [ - { - "definition" : { - "name" : { - "en" : "test_course_name" - }, - "type" : "http://id.tincanapi.com/activitytype/lms" - }, - "id" : "http://www.example.org" - } - ], - "parent" : [ - { - "definition" : { - "name" : { - "en" : "test_course_name" - }, - "type" : "https://w3id.org/xapi/cmi5/activitytype/course" - }, - "id" : "http://www.example.org/course/view.php?id=1" - } - ] - }, - "extensions" : { - "http://lrs.learninglocker.net/define/extensions/info" : { - "event_function" : "\\src\\transformer\\events\\core\\calendar_event_deleted", - "event_name" : "\\core\\event\\calendar_event_deleted", - "http://moodle.org" : "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi" : "0.0.0-development" - } - }, - "language" : "en" - }, - "object" : { - "definition" : { - "name" : { - "en" : "test event" + "name": "event_deleter_firstname event_deleter_lastname" + }, + "context": { + "contextActivities": { + "category": [ + { + "definition": { + "name": { + "en": "test_course_name" + }, + "type": "http://id.tincanapi.com/activitytype/lms" + }, + "id": "http://www.example.org" + } + ], + "parent": [ + { + "definition": { + "name": { + "en": "test_course_name" + }, + "type": "https://w3id.org/xapi/cmi5/activitytype/course" }, - "type" : "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/calendar-event" - }, - "id" : "http://www.example.org/calendar/view?id=1" + "id": "http://www.example.org/course/view.php?id=1" + } + ] + }, + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "event_function": "\\src\\transformer\\events\\core\\calendar_event_deleted", + "event_name": "\\core\\event\\calendar_event_deleted", + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development" + } + }, + "language": "en" + }, + "object": { + "definition": { + "name": { + "en": "test event" + }, + "type": "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/calendar-event" + }, + "id": "http://www.example.org/calendar/view?id=1" + }, + "verb": { + "display": { + "en": "Deleted" }, - "verb" : { - "display" : { - "en" : "Deleted" - }, - "id" : "http://activitystrea.ms/delete" - } - } + "id": "http://activitystrea.ms/delete" + } + } ] diff --git a/tests/core/calendar_event_updated/user_updated_calendar_event/data.json b/tests/core/calendar_event_updated/user_updated_calendar_event/data.json index 21532a5c3..b3b356dfa 100644 --- a/tests/core/calendar_event_updated/user_updated_calendar_event/data.json +++ b/tests/core/calendar_event_updated/user_updated_calendar_event/data.json @@ -1,25 +1,25 @@ { - "course" : [ - { - "fullname" : "test_course_name", - "id" : 1, - "lang" : "en", - "summary" : "test_course_summary" - } - ], - "event" : [ - { - "id" : 1, - "name" : "test event" - } - ], - "user" : [ - { - "email" : "updater@test.com", - "firstname" : "event_updater_firstname", - "id" : 1, - "lastname" : "event_updater_lastname", - "username" : "updater" - } - ] + "course": [ + { + "fullname": "test_course_name", + "id": 1, + "lang": "en", + "summary": "test_course_summary" + } + ], + "event": [ + { + "id": 1, + "name": "test event" + } + ], + "user": [ + { + "email": "updater@test.com", + "firstname": "event_updater_firstname", + "id": 1, + "lastname": "event_updater_lastname", + "username": "updater" + } + ] } diff --git a/tests/core/calendar_event_updated/user_updated_calendar_event/event.json b/tests/core/calendar_event_updated/user_updated_calendar_event/event.json index 8c1f94817..d11edd5f8 100644 --- a/tests/core/calendar_event_updated/user_updated_calendar_event/event.json +++ b/tests/core/calendar_event_updated/user_updated_calendar_event/event.json @@ -1,9 +1,9 @@ { - "courseid" : 1, - "eventname" : "\\core\\event\\calendar_event_updated", - "id" : 1, - "objectid" : 1, - "objecttable" : "event", - "timecreated" : 1433946701, - "userid" : 1 + "courseid": 1, + "eventname": "\\core\\event\\calendar_event_updated", + "id": 1, + "objectid": 1, + "objecttable": "event", + "timecreated": 1433946701, + "userid": 1 } diff --git a/tests/core/calendar_event_updated/user_updated_calendar_event/statements.json b/tests/core/calendar_event_updated/user_updated_calendar_event/statements.json index 1d626e8b6..1f5675e35 100644 --- a/tests/core/calendar_event_updated/user_updated_calendar_event/statements.json +++ b/tests/core/calendar_event_updated/user_updated_calendar_event/statements.json @@ -1,60 +1,60 @@ [ - { - "actor" : { - "account" : { - "homePage" : "http://www.example.org", - "name" : "1" - }, - "name" : "event_updater_firstname event_updater_lastname" + { + "actor": { + "account": { + "homePage": "http://www.example.org", + "name": "1" }, - "context" : { - "contextActivities" : { - "category" : [ - { - "definition" : { - "name" : { - "en" : "test_course_name" - }, - "type" : "http://id.tincanapi.com/activitytype/lms" - }, - "id" : "http://www.example.org" - } - ], - "parent" : [ - { - "definition" : { - "name" : { - "en" : "test_course_name" - }, - "type" : "https://w3id.org/xapi/cmi5/activitytype/course" - }, - "id" : "http://www.example.org/course/view.php?id=1" - } - ] - }, - "extensions" : { - "http://lrs.learninglocker.net/define/extensions/info" : { - "event_function" : "\\src\\transformer\\events\\core\\calendar_event_updated", - "event_name" : "\\core\\event\\calendar_event_updated", - "http://moodle.org" : "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi" : "0.0.0-development" - } - } - }, - "object" : { - "definition" : { - "name" : { - "en" : "test event" + "name": "event_updater_firstname event_updater_lastname" + }, + "context": { + "contextActivities": { + "category": [ + { + "definition": { + "name": { + "en": "test_course_name" + }, + "type": "http://id.tincanapi.com/activitytype/lms" + }, + "id": "http://www.example.org" + } + ], + "parent": [ + { + "definition": { + "name": { + "en": "test_course_name" + }, + "type": "https://w3id.org/xapi/cmi5/activitytype/course" }, - "type" : "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/calendar-event" - }, - "id" : "http://www.example.org/calendar/view.php?id=1" + "id": "http://www.example.org/course/view.php?id=1" + } + ] }, - "verb" : { - "display" : { - "en" : "Edited" - }, - "id" : "https://w3id.org/xapi/acrossx/verbs/edited" + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "event_function": "\\src\\transformer\\events\\core\\calendar_event_updated", + "event_name": "\\core\\event\\calendar_event_updated", + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development" + } } - } + }, + "object": { + "definition": { + "name": { + "en": "test event" + }, + "type": "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/calendar-event" + }, + "id": "http://www.example.org/calendar/view.php?id=1" + }, + "verb": { + "display": { + "en": "Edited" + }, + "id": "https://w3id.org/xapi/acrossx/verbs/edited" + } + } ] diff --git a/tests/core/course_category_created/event.json b/tests/core/course_category_created/event.json index 3077a4c13..930237626 100644 --- a/tests/core/course_category_created/event.json +++ b/tests/core/course_category_created/event.json @@ -1,8 +1,8 @@ { - "id": 1, - "objecttable": "course_categories", - "timecreated": 1433946701, - "objectid": 3, - "eventname": "\\core\\event\\course_category_created", - "userid": 1 + "id": 1, + "objecttable": "course_categories", + "timecreated": 1433946701, + "objectid": 3, + "eventname": "\\core\\event\\course_category_created", + "userid": 1 } diff --git a/tests/core/course_completed/completing_existing_course/data.json b/tests/core/course_completed/completing_existing_course/data.json index 26c269038..614658e31 100644 --- a/tests/core/course_completed/completing_existing_course/data.json +++ b/tests/core/course_completed/completing_existing_course/data.json @@ -1,16 +1,16 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ] +} diff --git a/tests/core/course_completed/completing_existing_course/event.json b/tests/core/course_completed/completing_existing_course/event.json index a6e62632b..e41fb4258 100644 --- a/tests/core/course_completed/completing_existing_course/event.json +++ b/tests/core/course_completed/completing_existing_course/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "course", - "objectid": 1, - "eventname": "\\core\\event\\course_completed" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "course", + "objectid": 1, + "eventname": "\\core\\event\\course_completed" +} diff --git a/tests/core/course_completed/send_jisc_data/data.json b/tests/core/course_completed/send_jisc_data/data.json index a6a648d27..b3719b756 100644 --- a/tests/core/course_completed/send_jisc_data/data.json +++ b/tests/core/course_completed/send_jisc_data/data.json @@ -1,17 +1,17 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en", - "shortname": "test_course_short_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en", + "shortname": "test_course_short_name" + } + ] +} diff --git a/tests/core/course_completed/send_jisc_data/event.json b/tests/core/course_completed/send_jisc_data/event.json index 8691e0262..f8682bf19 100644 --- a/tests/core/course_completed/send_jisc_data/event.json +++ b/tests/core/course_completed/send_jisc_data/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "course", - "objectid": 1, - "eventname": "\\core\\event\\course_completed", - "ip": "127.0.0.1" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "course", + "objectid": 1, + "eventname": "\\core\\event\\course_completed", + "ip": "127.0.0.1" +} diff --git a/tests/core/course_completion_updated/event.json b/tests/core/course_completion_updated/event.json index 7882d1c47..85686ea46 100644 --- a/tests/core/course_completion_updated/event.json +++ b/tests/core/course_completion_updated/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "objecttable": null, - "timecreated": 1433946701, - "objectid": null, - "eventname": "\\core\\event\\course_completion_updated", - "userid": 1, - "courseid": 1 + "id": 1, + "objecttable": null, + "timecreated": 1433946701, + "objectid": null, + "eventname": "\\core\\event\\course_completion_updated", + "userid": 1, + "courseid": 1 } diff --git a/tests/core/course_created/creating_new_course/event.json b/tests/core/course_created/creating_new_course/event.json index f6ac857c8..da06075a3 100644 --- a/tests/core/course_created/creating_new_course/event.json +++ b/tests/core/course_created/creating_new_course/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "objecttable": "course", - "timecreated": 1433946701, - "objectid": 1, - "courseid": 1, - "eventname": "\\core\\event\\course_created", - "userid": 1 + "id": 1, + "objecttable": "course", + "timecreated": 1433946701, + "objectid": 1, + "courseid": 1, + "eventname": "\\core\\event\\course_created", + "userid": 1 } diff --git a/tests/core/course_created/creating_new_course/statements.json b/tests/core/course_created/creating_new_course/statements.json index f49ffeabc..3ab482532 100644 --- a/tests/core/course_created/creating_new_course/statements.json +++ b/tests/core/course_created/creating_new_course/statements.json @@ -14,13 +14,13 @@ } }, "object": { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" } + } }, "context": { "contextActivities": { diff --git a/tests/core/course_module_completion_update/completing_existing_module/data.json b/tests/core/course_module_completion_update/completing_existing_module/data.json index 1fe5a7f94..94a10e917 100644 --- a/tests/core/course_module_completion_update/completing_existing_module/data.json +++ b/tests/core/course_module_completion_update/completing_existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "book" - } - ], - "book": [ - { - "id": 1, - "name": "test_book_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "book" + } + ], + "book": [ + { + "id": 1, + "name": "test_book_name" + } + ] +} diff --git a/tests/core/course_module_completion_update/completing_existing_module/event.json b/tests/core/course_module_completion_update/completing_existing_module/event.json index e5416ef09..5ad6429aa 100644 --- a/tests/core/course_module_completion_update/completing_existing_module/event.json +++ b/tests/core/course_module_completion_update/completing_existing_module/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\core\\event\\course_module_completion_updated", - "other": "a:3:{s:13:\"relateduserid\";i:1;s:10:\"overrideby\";N;s:15:\"completionstate\";i:1;}" + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\core\\event\\course_module_completion_updated", + "other": "a:3:{s:13:\"relateduserid\";i:1;s:10:\"overrideby\";N;s:15:\"completionstate\";i:1;}" } diff --git a/tests/core/course_module_completion_update/uncompleting_existing_module/data.json b/tests/core/course_module_completion_update/uncompleting_existing_module/data.json index 1fe5a7f94..94a10e917 100644 --- a/tests/core/course_module_completion_update/uncompleting_existing_module/data.json +++ b/tests/core/course_module_completion_update/uncompleting_existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "book" - } - ], - "book": [ - { - "id": 1, - "name": "test_book_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "book" + } + ], + "book": [ + { + "id": 1, + "name": "test_book_name" + } + ] +} diff --git a/tests/core/course_module_completion_update/uncompleting_existing_module/event.json b/tests/core/course_module_completion_update/uncompleting_existing_module/event.json index bc4b7e5f0..51e1af8b6 100644 --- a/tests/core/course_module_completion_update/uncompleting_existing_module/event.json +++ b/tests/core/course_module_completion_update/uncompleting_existing_module/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\core\\event\\course_module_completion_updated", - "other": "a:3:{s:13:\"relateduserid\";i:1;s:10:\"overrideby\";N;s:15:\"completionstate\";i:0;}" + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\core\\event\\course_module_completion_updated", + "other": "a:3:{s:13:\"relateduserid\";i:1;s:10:\"overrideby\";N;s:15:\"completionstate\";i:0;}" } diff --git a/tests/core/course_resources_list_viewed/existing_course_resources_list_viewed/data.json b/tests/core/course_resources_list_viewed/existing_course_resources_list_viewed/data.json index 26c269038..614658e31 100644 --- a/tests/core/course_resources_list_viewed/existing_course_resources_list_viewed/data.json +++ b/tests/core/course_resources_list_viewed/existing_course_resources_list_viewed/data.json @@ -1,16 +1,16 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ] +} diff --git a/tests/core/course_resources_list_viewed/existing_course_resources_list_viewed/event.json b/tests/core/course_resources_list_viewed/existing_course_resources_list_viewed/event.json index 8b8dce15b..38bf55d64 100644 --- a/tests/core/course_resources_list_viewed/existing_course_resources_list_viewed/event.json +++ b/tests/core/course_resources_list_viewed/existing_course_resources_list_viewed/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": null, - "objectid": null, - "eventname": "\\core\\event\\course_resources_list_viewed" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": null, + "objectid": null, + "eventname": "\\core\\event\\course_resources_list_viewed" } diff --git a/tests/core/course_updated/updating_existing_course/event.json b/tests/core/course_updated/updating_existing_course/event.json index 8599a814b..d77ecfdd1 100644 --- a/tests/core/course_updated/updating_existing_course/event.json +++ b/tests/core/course_updated/updating_existing_course/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "objecttable": "course", - "timecreated": 1433946701, - "objectid": 1, - "courseid": 1, - "eventname": "\\core\\event\\course_updated", - "userid": 1 + "id": 1, + "objecttable": "course", + "timecreated": 1433946701, + "objectid": 1, + "courseid": 1, + "eventname": "\\core\\event\\course_updated", + "userid": 1 } diff --git a/tests/core/course_updated/updating_existing_course/statements.json b/tests/core/course_updated/updating_existing_course/statements.json index a7f6055b6..f92e9a720 100644 --- a/tests/core/course_updated/updating_existing_course/statements.json +++ b/tests/core/course_updated/updating_existing_course/statements.json @@ -14,13 +14,13 @@ } }, "object": { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" } + } }, "context": { "contextActivities": { diff --git a/tests/core/course_viewed/viewing_existing_course/data.json b/tests/core/course_viewed/viewing_existing_course/data.json index 26c269038..614658e31 100644 --- a/tests/core/course_viewed/viewing_existing_course/data.json +++ b/tests/core/course_viewed/viewing_existing_course/data.json @@ -1,16 +1,16 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ] +} diff --git a/tests/core/course_viewed/viewing_existing_course/event.json b/tests/core/course_viewed/viewing_existing_course/event.json index abf3fd57f..07290c53f 100644 --- a/tests/core/course_viewed/viewing_existing_course/event.json +++ b/tests/core/course_viewed/viewing_existing_course/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "course", - "objectid": 1, - "eventname": "\\core\\event\\course_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "course", + "objectid": 1, + "eventname": "\\core\\event\\course_viewed" +} diff --git a/tests/core/course_viewed/viewing_existing_course/statements.json b/tests/core/course_viewed/viewing_existing_course/statements.json index b8f412f98..59de7459e 100644 --- a/tests/core/course_viewed/viewing_existing_course/statements.json +++ b/tests/core/course_viewed/viewing_existing_course/statements.json @@ -1,50 +1,50 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "Viewed" - } - }, - "object": { - "id": "http://www.example.org/course/view.php?id=1", + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "Viewed" + } + }, + "object": { + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\core\\event\\course_viewed", + "event_function": "\\src\\transformer\\events\\core\\course_viewed" + } + }, + "contextActivities": { + "category": [ + { + "id": "http://www.example.org", "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\core\\event\\course_viewed", - "event_function": "\\src\\transformer\\events\\core\\course_viewed" - } - }, - "contextActivities": { - "category": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - } - ] + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - } + } + ] + } } + } ] diff --git a/tests/core/group_created/creating_new_group/event.json b/tests/core/group_created/creating_new_group/event.json index 0f9170447..a10a75825 100644 --- a/tests/core/group_created/creating_new_group/event.json +++ b/tests/core/group_created/creating_new_group/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "objecttable": "groups", - "timecreated": 1433946701, - "objectid": 1, - "courseid": 1, - "eventname": "\\core\\event\\group_created", - "userid": 1 + "id": 1, + "objecttable": "groups", + "timecreated": 1433946701, + "objectid": 1, + "courseid": 1, + "eventname": "\\core\\event\\group_created", + "userid": 1 } diff --git a/tests/core/user_created/existing_user_created/data.json b/tests/core/user_created/existing_user_created/data.json index 26c269038..614658e31 100644 --- a/tests/core/user_created/existing_user_created/data.json +++ b/tests/core/user_created/existing_user_created/data.json @@ -1,16 +1,16 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ] +} diff --git a/tests/core/user_created/existing_user_created/event.json b/tests/core/user_created/existing_user_created/event.json index fe575ce3b..a9ed6e03f 100644 --- a/tests/core/user_created/existing_user_created/event.json +++ b/tests/core/user_created/existing_user_created/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "user", - "objectid": 1, - "eventname": "\\core\\event\\user_created" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "user", + "objectid": 1, + "eventname": "\\core\\event\\user_created" +} diff --git a/tests/core/user_created/existing_user_created/statements.json b/tests/core/user_created/existing_user_created/statements.json index be53f0155..e08db7689 100644 --- a/tests/core/user_created/existing_user_created/statements.json +++ b/tests/core/user_created/existing_user_created/statements.json @@ -1,50 +1,50 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/registered", - "display": { - "en": "registered to" - } - }, - "object": { - "id": "http://www.example.org", + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/registered", + "display": { + "en": "registered to" + } + }, + "object": { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\core\\event\\user_created", + "event_function": "\\src\\transformer\\events\\core\\user_created" + } + }, + "contextActivities": { + "category": [ + { + "id": "http://moodle.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\core\\event\\user_created", - "event_function": "\\src\\transformer\\events\\core\\user_created" - } - }, - "contextActivities": { - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/core/user_created/send_jisc_data/data.json b/tests/core/user_created/send_jisc_data/data.json index a6a648d27..b3719b756 100644 --- a/tests/core/user_created/send_jisc_data/data.json +++ b/tests/core/user_created/send_jisc_data/data.json @@ -1,17 +1,17 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en", - "shortname": "test_course_short_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en", + "shortname": "test_course_short_name" + } + ] +} diff --git a/tests/core/user_created/send_jisc_data/event.json b/tests/core/user_created/send_jisc_data/event.json index cef127641..c5828b1a7 100644 --- a/tests/core/user_created/send_jisc_data/event.json +++ b/tests/core/user_created/send_jisc_data/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "user", - "objectid": 1, - "eventname": "\\core\\event\\user_created", - "ip": "127.0.0.1" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "user", + "objectid": 1, + "eventname": "\\core\\event\\user_created", + "ip": "127.0.0.1" +} diff --git a/tests/core/user_created/send_jisc_data/statements.json b/tests/core/user_created/send_jisc_data/statements.json index 2abc795fd..8561deb5b 100644 --- a/tests/core/user_created/send_jisc_data/statements.json +++ b/tests/core/user_created/send_jisc_data/statements.json @@ -1,53 +1,53 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/registered", - "display": { - "en": "registered to" - } + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/registered", + "display": { + "en": "registered to" + } + }, + "object": { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\core\\event\\user_created", + "event_function": "\\src\\transformer\\events\\core\\user_created" }, - "object": { - "id": "http://www.example.org", + "http://xapi.jisc.ac.uk/sessionId": "test_session_id", + "http://id.tincanapi.com/extension/ip-address": "127.0.0.1", + "http://xapi.jisc.ac.uk/statementCat": "VLE" + }, + "contextActivities": { + "category": [ + { + "id": "http://moodle.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\core\\event\\user_created", - "event_function": "\\src\\transformer\\events\\core\\user_created" - }, - "http://xapi.jisc.ac.uk/sessionId": "test_session_id", - "http://id.tincanapi.com/extension/ip-address": "127.0.0.1", - "http://xapi.jisc.ac.uk/statementCat": "VLE" - }, - "contextActivities": { - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] - } - } + } + ] + } } + } ] diff --git a/tests/core/user_enrolment_created/existing_user_enrolled/data.json b/tests/core/user_enrolment_created/existing_user_enrolled/data.json index 26c269038..614658e31 100644 --- a/tests/core/user_enrolment_created/existing_user_enrolled/data.json +++ b/tests/core/user_enrolment_created/existing_user_enrolled/data.json @@ -1,16 +1,16 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ] +} diff --git a/tests/core/user_enrolment_created/existing_user_enrolled/event.json b/tests/core/user_enrolment_created/existing_user_enrolled/event.json index 5f0c1129b..4a93d9e9d 100644 --- a/tests/core/user_enrolment_created/existing_user_enrolled/event.json +++ b/tests/core/user_enrolment_created/existing_user_enrolled/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "user", - "objectid": 1, - "eventname": "\\core\\event\\user_enrolment_created" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "user", + "objectid": 1, + "eventname": "\\core\\event\\user_enrolment_created" +} diff --git a/tests/core/user_enrolment_created/existing_user_enrolled/statements.json b/tests/core/user_enrolment_created/existing_user_enrolled/statements.json index be1a5dadc..ebe395e5c 100644 --- a/tests/core/user_enrolment_created/existing_user_enrolled/statements.json +++ b/tests/core/user_enrolment_created/existing_user_enrolled/statements.json @@ -1,61 +1,61 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/registered", - "display": { - "en": "enrolled to" - } - }, - "object": { - "id": "http://www.example.org/course/view.php?id=1", + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/registered", + "display": { + "en": "enrolled to" + } + }, + "object": { + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\core\\event\\user_enrolment_created", + "event_function": "\\src\\transformer\\events\\core\\user_enrolment_created" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\core\\event\\user_enrolment_created", - "event_function": "\\src\\transformer\\events\\core\\user_enrolment_created" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/core/user_loggedin/existing_user_loggedin/data.json b/tests/core/user_loggedin/existing_user_loggedin/data.json index 26c269038..614658e31 100644 --- a/tests/core/user_loggedin/existing_user_loggedin/data.json +++ b/tests/core/user_loggedin/existing_user_loggedin/data.json @@ -1,16 +1,16 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ] +} diff --git a/tests/core/user_loggedin/existing_user_loggedin/event.json b/tests/core/user_loggedin/existing_user_loggedin/event.json index fda2d6e1c..fc3503658 100644 --- a/tests/core/user_loggedin/existing_user_loggedin/event.json +++ b/tests/core/user_loggedin/existing_user_loggedin/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "course", - "objectid": 1, - "eventname": "\\core\\event\\user_loggedin" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "course", + "objectid": 1, + "eventname": "\\core\\event\\user_loggedin" +} diff --git a/tests/core/user_loggedin/existing_user_loggedin/statements.json b/tests/core/user_loggedin/existing_user_loggedin/statements.json index c1db51271..4bbaff681 100644 --- a/tests/core/user_loggedin/existing_user_loggedin/statements.json +++ b/tests/core/user_loggedin/existing_user_loggedin/statements.json @@ -1,50 +1,50 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "https://brindlewaye.com/xAPITerms/verbs/loggedin/", - "display": { - "en": "logged into" - } - }, - "object": { - "id": "http://www.example.org", + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "https://brindlewaye.com/xAPITerms/verbs/loggedin/", + "display": { + "en": "logged into" + } + }, + "object": { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\core\\event\\user_loggedin", + "event_function": "\\src\\transformer\\events\\core\\user_loggedin" + } + }, + "contextActivities": { + "category": [ + { + "id": "http://moodle.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\core\\event\\user_loggedin", - "event_function": "\\src\\transformer\\events\\core\\user_loggedin" - } - }, - "contextActivities": { - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/core/user_loggedout/existing_user_loggedout/data.json b/tests/core/user_loggedout/existing_user_loggedout/data.json index 26c269038..614658e31 100644 --- a/tests/core/user_loggedout/existing_user_loggedout/data.json +++ b/tests/core/user_loggedout/existing_user_loggedout/data.json @@ -1,16 +1,16 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ] +} diff --git a/tests/core/user_loggedout/existing_user_loggedout/event.json b/tests/core/user_loggedout/existing_user_loggedout/event.json index 4fdbe518a..36b34b41a 100644 --- a/tests/core/user_loggedout/existing_user_loggedout/event.json +++ b/tests/core/user_loggedout/existing_user_loggedout/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "course", - "objectid": 1, - "eventname": "\\core\\event\\user_loggedout" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "course", + "objectid": 1, + "eventname": "\\core\\event\\user_loggedout" +} diff --git a/tests/core/user_loggedout/existing_user_loggedout/statements.json b/tests/core/user_loggedout/existing_user_loggedout/statements.json index 28c51d7d8..d0393d1e5 100644 --- a/tests/core/user_loggedout/existing_user_loggedout/statements.json +++ b/tests/core/user_loggedout/existing_user_loggedout/statements.json @@ -1,50 +1,50 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "https://brindlewaye.com/xAPITerms/verbs/loggedout/", - "display": { - "en": "logged out of" - } - }, - "object": { - "id": "http://www.example.org", + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "https://brindlewaye.com/xAPITerms/verbs/loggedout/", + "display": { + "en": "logged out of" + } + }, + "object": { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\core\\event\\user_loggedout", + "event_function": "\\src\\transformer\\events\\core\\user_loggedout" + } + }, + "contextActivities": { + "category": [ + { + "id": "http://moodle.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\core\\event\\user_loggedout", - "event_function": "\\src\\transformer\\events\\core\\user_loggedout" - } - }, - "contextActivities": { - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/data.json b/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/data.json index 4c285fc09..53b8ecc48 100644 --- a/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/data.json +++ b/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/data.json @@ -1,61 +1,61 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - }, - { - "id": 2, - "firstname": "test2_fullname", - "email": "test2@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "assign": [ - { - "id": 1, - "name": "test_name" - } - ], - "grade": [ - { - "id": 1, - "userid": 2, - "assignment": 1, - "grade": 1 - } - ], - "assignfeedback_comments": [ - { - "id": 1, - "assignment": 1, - "grade": 1, - "commenttext": "test_comment_text" - } - ], - "grade_items": [ - { - "id": 1, - "itemmodule": "assign", - "iteminstance": 1, - "grademin": 0, - "grademax": 2, - "gradepass": 1 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + }, + { + "id": 2, + "firstname": "test2_fullname", + "email": "test2@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "assign": [ + { + "id": 1, + "name": "test_name" + } + ], + "grade": [ + { + "id": 1, + "userid": 2, + "assignment": 1, + "grade": 1 + } + ], + "assignfeedback_comments": [ + { + "id": 1, + "assignment": 1, + "grade": 1, + "commenttext": "test_comment_text" + } + ], + "grade_items": [ + { + "id": 1, + "itemmodule": "assign", + "iteminstance": 1, + "grademin": 0, + "grademax": 2, + "gradepass": 1 + } + ] +} diff --git a/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/event.json b/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/event.json index bce74db3d..490ae6308 100644 --- a/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/event.json +++ b/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "grade", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_assign\\event\\submission_graded" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "grade", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_assign\\event\\submission_graded" +} diff --git a/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/statements.json b/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/statements.json index 76b04c66b..661a4f490 100644 --- a/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/statements.json +++ b/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/statements.json @@ -1,88 +1,88 @@ [ - { - "actor": { - "name": "test2_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "2" - } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/scored", - "display": { - "en": "attained grade for" + { + "actor": { + "name": "test2_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "2" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/scored", + "display": { + "en": "attained grade for" + } + }, + "object": { + "id": "http://www.example.org/mod/assign/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_name" + } + } + }, + "result": { + "score": { + "raw": 1, + "min": 0, + "max": 2, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "response": "test_comment_text" + }, + "context": { + "instructor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_assign\\event\\submission_graded", + "event_function": "\\src\\transformer\\events\\mod_assign\\assignment_graded" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/assign/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "score": { - "raw": 1, - "min": 0, - "max": 2, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "response": "test_comment_text" - }, - "context": { - "instructor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_assign\\event\\submission_graded", - "event_function": "\\src\\transformer\\events\\mod_assign\\assignment_graded" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/data.json b/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/data.json index d49ef92cd..f9533afef 100644 --- a/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/data.json +++ b/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/data.json @@ -1,55 +1,54 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - }, - { - "id": 2, - "firstname": "test2_fullname", - "email": "test2@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "assign": [ - { - "id": 1, - "name": "test_name" - } - ], - "grade": [ - { - "id": 1, - "userid": 2, - "assignment": 1, - "grade": 1 - } - ], - "assignfeedback_comments": [ - ], - "grade_items": [ - { - "id": 1, - "itemmodule": "assign", - "iteminstance": 1, - "grademin": 0, - "grademax": 2, - "gradepass": 1 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + }, + { + "id": 2, + "firstname": "test2_fullname", + "email": "test2@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "assign": [ + { + "id": 1, + "name": "test_name" + } + ], + "grade": [ + { + "id": 1, + "userid": 2, + "assignment": 1, + "grade": 1 + } + ], + "assignfeedback_comments": [], + "grade_items": [ + { + "id": 1, + "itemmodule": "assign", + "iteminstance": 1, + "grademin": 0, + "grademax": 2, + "gradepass": 1 + } + ] +} diff --git a/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/event.json b/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/event.json index bce74db3d..490ae6308 100644 --- a/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/event.json +++ b/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "grade", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_assign\\event\\submission_graded" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "grade", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_assign\\event\\submission_graded" +} diff --git a/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/statements.json b/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/statements.json index 4a54e2a49..a44d1f627 100644 --- a/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/statements.json +++ b/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/statements.json @@ -1,87 +1,87 @@ [ - { - "actor": { - "name": "test2_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "2" - } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/scored", - "display": { - "en": "attained grade for" + { + "actor": { + "name": "test2_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "2" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/scored", + "display": { + "en": "attained grade for" + } + }, + "object": { + "id": "http://www.example.org/mod/assign/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_name" + } + } + }, + "result": { + "score": { + "raw": 1, + "min": 0, + "max": 2, + "scaled": 0.5 + }, + "completion": true, + "success": true + }, + "context": { + "instructor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_assign\\event\\submission_graded", + "event_function": "\\src\\transformer\\events\\mod_assign\\assignment_graded" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/assign/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "score": { - "raw": 1, - "min": 0, - "max": 2, - "scaled": 0.5 - }, - "completion": true, - "success": true - }, - "context": { - "instructor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_assign\\event\\submission_graded", - "event_function": "\\src\\transformer\\events\\mod_assign\\assignment_graded" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_assign/assignment_submitted/existing_assignment_submitted/data.json b/tests/mod_assign/assignment_submitted/existing_assignment_submitted/data.json index d64a6e5af..edfcb5c67 100644 --- a/tests/mod_assign/assignment_submitted/existing_assignment_submitted/data.json +++ b/tests/mod_assign/assignment_submitted/existing_assignment_submitted/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "assign_submission": [ - { - "id": 1, - "assignment": 1 - } - ], - "assign": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "assign_submission": [ + { + "id": 1, + "assignment": 1 + } + ], + "assign": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_assign/assignment_submitted/existing_assignment_submitted/event.json b/tests/mod_assign/assignment_submitted/existing_assignment_submitted/event.json index 59ba3551d..95b4f8c37 100644 --- a/tests/mod_assign/assignment_submitted/existing_assignment_submitted/event.json +++ b/tests/mod_assign/assignment_submitted/existing_assignment_submitted/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "assignment_submissions", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_assign\\event\\assessable_submitted" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "assignment_submissions", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_assign\\event\\assessable_submitted" +} diff --git a/tests/mod_assign/assignment_submitted/existing_assignment_submitted/statements.json b/tests/mod_assign/assignment_submitted/existing_assignment_submitted/statements.json index 6fe157351..ef19e636b 100644 --- a/tests/mod_assign/assignment_submitted/existing_assignment_submitted/statements.json +++ b/tests/mod_assign/assignment_submitted/existing_assignment_submitted/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://activitystrea.ms/schema/1.0/submit", - "display": { - "en": "submitted" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://activitystrea.ms/schema/1.0/submit", + "display": { + "en": "submitted" + } + }, + "object": { + "id": "http://www.example.org/mod/assign/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_assign\\event\\assessable_submitted", + "event_function": "\\src\\transformer\\events\\mod_assign\\assignment_submitted" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/assign/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_assign\\event\\assessable_submitted", - "event_function": "\\src\\transformer\\events\\mod_assign\\assignment_submitted" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/activity_management_viewed/data.json b/tests/mod_bigbluebuttonbn/activity_management_viewed/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/activity_management_viewed/data.json +++ b/tests/mod_bigbluebuttonbn/activity_management_viewed/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/activity_management_viewed/event.json b/tests/mod_bigbluebuttonbn/activity_management_viewed/event.json index 5efc723c8..dd96e039f 100644 --- a/tests/mod_bigbluebuttonbn/activity_management_viewed/event.json +++ b/tests/mod_bigbluebuttonbn/activity_management_viewed/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\activity_management_viewed" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\activity_management_viewed" } - diff --git a/tests/mod_bigbluebuttonbn/activity_management_viewed/statements.json b/tests/mod_bigbluebuttonbn/activity_management_viewed/statements.json index 5cdc66296..fb7a4ee42 100644 --- a/tests/mod_bigbluebuttonbn/activity_management_viewed/statements.json +++ b/tests/mod_bigbluebuttonbn/activity_management_viewed/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "viewed" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "viewed" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\activity_management_viewed", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\activity_management_viewed" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\activity_management_viewed", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\activity_management_viewed" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/live_session/data.json b/tests/mod_bigbluebuttonbn/live_session/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/live_session/data.json +++ b/tests/mod_bigbluebuttonbn/live_session/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/live_session/event.json b/tests/mod_bigbluebuttonbn/live_session/event.json index e44207459..04641164b 100644 --- a/tests/mod_bigbluebuttonbn/live_session/event.json +++ b/tests/mod_bigbluebuttonbn/live_session/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\live_session_event" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\live_session_event" } - diff --git a/tests/mod_bigbluebuttonbn/live_session/statements.json b/tests/mod_bigbluebuttonbn/live_session/statements.json index 84e841cb7..acd8afd89 100644 --- a/tests/mod_bigbluebuttonbn/live_session/statements.json +++ b/tests/mod_bigbluebuttonbn/live_session/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/live", - "display": { - "en": "live" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/live", + "display": { + "en": "live" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\live_session_event", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\live_session" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\live_session_event", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\live_session" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/meeting_created/data.json b/tests/mod_bigbluebuttonbn/meeting_created/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/meeting_created/data.json +++ b/tests/mod_bigbluebuttonbn/meeting_created/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/meeting_created/event.json b/tests/mod_bigbluebuttonbn/meeting_created/event.json index 9dd679090..6e181aa6d 100644 --- a/tests/mod_bigbluebuttonbn/meeting_created/event.json +++ b/tests/mod_bigbluebuttonbn/meeting_created/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\meeting_created" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\meeting_created" } - diff --git a/tests/mod_bigbluebuttonbn/meeting_created/statements.json b/tests/mod_bigbluebuttonbn/meeting_created/statements.json index cf5ddf5f3..3e0eb39fa 100644 --- a/tests/mod_bigbluebuttonbn/meeting_created/statements.json +++ b/tests/mod_bigbluebuttonbn/meeting_created/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://activitystrea.ms/schema/1.0/create", - "display": { - "en": "created" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://activitystrea.ms/schema/1.0/create", + "display": { + "en": "created" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\meeting_created", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\meeting_created" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\meeting_created", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\meeting_created" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/meeting_ended/data.json b/tests/mod_bigbluebuttonbn/meeting_ended/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/meeting_ended/data.json +++ b/tests/mod_bigbluebuttonbn/meeting_ended/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/meeting_ended/event.json b/tests/mod_bigbluebuttonbn/meeting_ended/event.json index 72eca0a99..aa629120f 100644 --- a/tests/mod_bigbluebuttonbn/meeting_ended/event.json +++ b/tests/mod_bigbluebuttonbn/meeting_ended/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\meeting_ended" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\meeting_ended" } - diff --git a/tests/mod_bigbluebuttonbn/meeting_ended/statements.json b/tests/mod_bigbluebuttonbn/meeting_ended/statements.json index 12ecf5834..a0df341dc 100644 --- a/tests/mod_bigbluebuttonbn/meeting_ended/statements.json +++ b/tests/mod_bigbluebuttonbn/meeting_ended/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/adjourned", - "display": { - "en": "adjourned" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/adjourned", + "display": { + "en": "adjourned" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\meeting_ended", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\meeting_ended" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\meeting_ended", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\meeting_ended" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/meeting_joined/data.json b/tests/mod_bigbluebuttonbn/meeting_joined/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/meeting_joined/data.json +++ b/tests/mod_bigbluebuttonbn/meeting_joined/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/meeting_joined/event.json b/tests/mod_bigbluebuttonbn/meeting_joined/event.json index a164ab50a..a9b71d966 100644 --- a/tests/mod_bigbluebuttonbn/meeting_joined/event.json +++ b/tests/mod_bigbluebuttonbn/meeting_joined/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\meeting_joined" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\meeting_joined" } - diff --git a/tests/mod_bigbluebuttonbn/meeting_joined/statements.json b/tests/mod_bigbluebuttonbn/meeting_joined/statements.json index 1317e2fc3..8245b3a16 100644 --- a/tests/mod_bigbluebuttonbn/meeting_joined/statements.json +++ b/tests/mod_bigbluebuttonbn/meeting_joined/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://activitystrea.ms/schema/1.0/join", - "display": { - "en": "joined" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://activitystrea.ms/schema/1.0/join", + "display": { + "en": "joined" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\meeting_joined", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\meeting_joined" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\meeting_joined", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\meeting_joined" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/meeting_left/data.json b/tests/mod_bigbluebuttonbn/meeting_left/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/meeting_left/data.json +++ b/tests/mod_bigbluebuttonbn/meeting_left/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/meeting_left/event.json b/tests/mod_bigbluebuttonbn/meeting_left/event.json index bd9b88240..c34b8a26b 100644 --- a/tests/mod_bigbluebuttonbn/meeting_left/event.json +++ b/tests/mod_bigbluebuttonbn/meeting_left/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\meeting_left" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\meeting_left" } - diff --git a/tests/mod_bigbluebuttonbn/meeting_left/statements.json b/tests/mod_bigbluebuttonbn/meeting_left/statements.json index 3667be833..4df7b5409 100644 --- a/tests/mod_bigbluebuttonbn/meeting_left/statements.json +++ b/tests/mod_bigbluebuttonbn/meeting_left/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://activitystrea.ms/schema/1.0/leave", - "display": { - "en": "left" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://activitystrea.ms/schema/1.0/leave", + "display": { + "en": "left" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\meeting_left", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\meeting_left" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\meeting_left", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\meeting_left" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/recording_deleted/data.json b/tests/mod_bigbluebuttonbn/recording_deleted/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/recording_deleted/data.json +++ b/tests/mod_bigbluebuttonbn/recording_deleted/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/recording_deleted/event.json b/tests/mod_bigbluebuttonbn/recording_deleted/event.json index 15b9e70c1..5444ed237 100644 --- a/tests/mod_bigbluebuttonbn/recording_deleted/event.json +++ b/tests/mod_bigbluebuttonbn/recording_deleted/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\recording_deleted" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\recording_deleted" } - diff --git a/tests/mod_bigbluebuttonbn/recording_deleted/statements.json b/tests/mod_bigbluebuttonbn/recording_deleted/statements.json index 37c3e70c7..bf421473e 100644 --- a/tests/mod_bigbluebuttonbn/recording_deleted/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_deleted/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "https://w3id.org/xapi/dod-isd/verbs/deleted", - "display": { - "en": "deleted" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "https://w3id.org/xapi/dod-isd/verbs/deleted", + "display": { + "en": "deleted" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\recording_deleted", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_deleted" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\recording_deleted", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_deleted" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/recording_edited/data.json b/tests/mod_bigbluebuttonbn/recording_edited/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/recording_edited/data.json +++ b/tests/mod_bigbluebuttonbn/recording_edited/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/recording_edited/event.json b/tests/mod_bigbluebuttonbn/recording_edited/event.json index 15b9e70c1..5444ed237 100644 --- a/tests/mod_bigbluebuttonbn/recording_edited/event.json +++ b/tests/mod_bigbluebuttonbn/recording_edited/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\recording_deleted" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\recording_deleted" } - diff --git a/tests/mod_bigbluebuttonbn/recording_edited/statements.json b/tests/mod_bigbluebuttonbn/recording_edited/statements.json index 37c3e70c7..bf421473e 100644 --- a/tests/mod_bigbluebuttonbn/recording_edited/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_edited/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "https://w3id.org/xapi/dod-isd/verbs/deleted", - "display": { - "en": "deleted" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "https://w3id.org/xapi/dod-isd/verbs/deleted", + "display": { + "en": "deleted" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\recording_deleted", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_deleted" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\recording_deleted", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_deleted" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/recording_imported/data.json b/tests/mod_bigbluebuttonbn/recording_imported/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/recording_imported/data.json +++ b/tests/mod_bigbluebuttonbn/recording_imported/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/recording_imported/event.json b/tests/mod_bigbluebuttonbn/recording_imported/event.json index a94a9f05b..2d79b9501 100644 --- a/tests/mod_bigbluebuttonbn/recording_imported/event.json +++ b/tests/mod_bigbluebuttonbn/recording_imported/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\recording_imported" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\recording_imported" } - diff --git a/tests/mod_bigbluebuttonbn/recording_imported/statements.json b/tests/mod_bigbluebuttonbn/recording_imported/statements.json index 8d00940d4..47162f8dd 100644 --- a/tests/mod_bigbluebuttonbn/recording_imported/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_imported/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/imported", - "display": { - "en": "imported" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/imported", + "display": { + "en": "imported" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\recording_imported", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_imported" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\recording_imported", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_imported" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/recording_protected/data.json b/tests/mod_bigbluebuttonbn/recording_protected/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/recording_protected/data.json +++ b/tests/mod_bigbluebuttonbn/recording_protected/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/recording_protected/event.json b/tests/mod_bigbluebuttonbn/recording_protected/event.json index 64b94fbe1..40b8acaf9 100644 --- a/tests/mod_bigbluebuttonbn/recording_protected/event.json +++ b/tests/mod_bigbluebuttonbn/recording_protected/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\recording_protected" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\recording_protected" } - diff --git a/tests/mod_bigbluebuttonbn/recording_protected/statements.json b/tests/mod_bigbluebuttonbn/recording_protected/statements.json index dafe9464d..5ddfacf25 100644 --- a/tests/mod_bigbluebuttonbn/recording_protected/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_protected/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/secured", - "display": { - "en": "secured" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/secured", + "display": { + "en": "secured" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\recording_protected", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_protected" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\recording_protected", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_protected" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/recording_published/data.json b/tests/mod_bigbluebuttonbn/recording_published/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/recording_published/data.json +++ b/tests/mod_bigbluebuttonbn/recording_published/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/recording_published/event.json b/tests/mod_bigbluebuttonbn/recording_published/event.json index 7d71a5218..1bd031bbd 100644 --- a/tests/mod_bigbluebuttonbn/recording_published/event.json +++ b/tests/mod_bigbluebuttonbn/recording_published/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\recording_published" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\recording_published" } - diff --git a/tests/mod_bigbluebuttonbn/recording_published/statements.json b/tests/mod_bigbluebuttonbn/recording_published/statements.json index 5b5b23375..288d5cfb9 100644 --- a/tests/mod_bigbluebuttonbn/recording_published/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_published/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "https://w3id.org/xapi/dod-isd/verbs/published", - "display": { - "en": "published" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "https://w3id.org/xapi/dod-isd/verbs/published", + "display": { + "en": "published" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\recording_published", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_published" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\recording_published", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_published" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/recording_unprotected/data.json b/tests/mod_bigbluebuttonbn/recording_unprotected/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/recording_unprotected/data.json +++ b/tests/mod_bigbluebuttonbn/recording_unprotected/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/recording_unprotected/event.json b/tests/mod_bigbluebuttonbn/recording_unprotected/event.json index e166ca4b6..83cd51474 100644 --- a/tests/mod_bigbluebuttonbn/recording_unprotected/event.json +++ b/tests/mod_bigbluebuttonbn/recording_unprotected/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\recording_unprotected" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\recording_unprotected" } - diff --git a/tests/mod_bigbluebuttonbn/recording_unprotected/statements.json b/tests/mod_bigbluebuttonbn/recording_unprotected/statements.json index 5bb372831..098cb1ac8 100644 --- a/tests/mod_bigbluebuttonbn/recording_unprotected/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_unprotected/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/unsecured", - "display": { - "en": "unsecured" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/unsecured", + "display": { + "en": "unsecured" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\recording_unprotected", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_unprotected" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\recording_unprotected", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_unprotected" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/recording_unpublished/data.json b/tests/mod_bigbluebuttonbn/recording_unpublished/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/recording_unpublished/data.json +++ b/tests/mod_bigbluebuttonbn/recording_unpublished/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/recording_unpublished/event.json b/tests/mod_bigbluebuttonbn/recording_unpublished/event.json index 2b58370d5..f065b60b8 100644 --- a/tests/mod_bigbluebuttonbn/recording_unpublished/event.json +++ b/tests/mod_bigbluebuttonbn/recording_unpublished/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\recording_unpublished" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\recording_unpublished" } - diff --git a/tests/mod_bigbluebuttonbn/recording_unpublished/statements.json b/tests/mod_bigbluebuttonbn/recording_unpublished/statements.json index 0d0050e4c..98ca5cbcf 100644 --- a/tests/mod_bigbluebuttonbn/recording_unpublished/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_unpublished/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://activitystrea.ms/schema/1.0/retract", - "display": { - "en": "retracted" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://activitystrea.ms/schema/1.0/retract", + "display": { + "en": "retracted" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\recording_unpublished", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_unpublished" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\recording_unpublished", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_unpublished" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_bigbluebuttonbn/recording_viewed/data.json b/tests/mod_bigbluebuttonbn/recording_viewed/data.json index e3b2769ac..d5b0f25f7 100644 --- a/tests/mod_bigbluebuttonbn/recording_viewed/data.json +++ b/tests/mod_bigbluebuttonbn/recording_viewed/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "bigbluebuttonbn" - } - ], - "bigbluebuttonbn": [ - { - "id": 1, - "name": "test_bigbluebuttonbn_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "bigbluebuttonbn" + } + ], + "bigbluebuttonbn": [ + { + "id": 1, + "name": "test_bigbluebuttonbn_name" + } + ] +} diff --git a/tests/mod_bigbluebuttonbn/recording_viewed/event.json b/tests/mod_bigbluebuttonbn/recording_viewed/event.json index bb64cca59..a8315a719 100644 --- a/tests/mod_bigbluebuttonbn/recording_viewed/event.json +++ b/tests/mod_bigbluebuttonbn/recording_viewed/event.json @@ -1,11 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "bigbluebuttonbn", - "objectid": 1, - "contextinstanceid": 1, - "eventname":"\\mod_bigbluebuttonbn\\event\\recording_viewed" + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "bigbluebuttonbn", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_bigbluebuttonbn\\event\\recording_viewed" } - diff --git a/tests/mod_bigbluebuttonbn/recording_viewed/statements.json b/tests/mod_bigbluebuttonbn/recording_viewed/statements.json index 989c4cd48..65ee10af2 100644 --- a/tests/mod_bigbluebuttonbn/recording_viewed/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_viewed/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "viewed" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "viewed" + } + }, + "object": { + "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/meeting", + "name": { + "en": "test_bigbluebuttonbn_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_bigbluebuttonbn\\event\\recording_viewed", + "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_viewed" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/bigbluebuttonbn/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/meeting", - "name": { - "en": "test_bigbluebuttonbn_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_bigbluebuttonbn\\event\\recording_viewed", - "event_function": "\\src\\transformer\\events\\mod_bigbluebuttonbn\\recording_viewed" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/data.json b/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/data.json index 63c13dbf6..8bd7c1806 100644 --- a/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/data.json +++ b/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/data.json @@ -1,54 +1,54 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "book" - } - ], - "book": [ - { - "id": 1, - "name": "test_book_name" - } - ], - "book_chapters": [ - { - "id": 1, - "bookid": 1, - "pagenum": 1, - "subchapter": 0, - "title": "test_parent_name", - "content": "
test_parent_content
" - }, - { - "id": 2, - "bookid": 1, - "pagenum": 2, - "subchapter": 1, - "title": "test_book_chapter_title", - "content": "test_book_chapter_content
" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "book" + } + ], + "book": [ + { + "id": 1, + "name": "test_book_name" + } + ], + "book_chapters": [ + { + "id": 1, + "bookid": 1, + "pagenum": 1, + "subchapter": 0, + "title": "test_parent_name", + "content": "test_parent_content
" + }, + { + "id": 2, + "bookid": 1, + "pagenum": 2, + "subchapter": 1, + "title": "test_book_chapter_title", + "content": "test_book_chapter_content
" + } + ] +} diff --git a/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/event.json b/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/event.json index 86db68846..99d591432 100644 --- a/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/event.json +++ b/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "book_chapters", - "objectid": 2, - "contextinstanceid": 1, - "eventname": "\\mod_book\\event\\chapter_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "book_chapters", + "objectid": 2, + "contextinstanceid": 1, + "eventname": "\\mod_book\\event\\chapter_viewed" +} diff --git a/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/statements.json b/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/statements.json index 303940356..a3b525550 100644 --- a/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/statements.json +++ b/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/statements.json @@ -1,96 +1,96 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "viewed" + } + }, + "object": { + "id": "http://www.example.org/mod/book/view.php?id=1&chapterid=2", + "definition": { + "type": "http://id.tincanapi.com/activitytype/chapter", + "name": { + "en": "test_book_chapter_title" }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "viewed" + "description": { + "en": "test_book_chapter_content" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_book\\event\\chapter_viewed", + "event_function": "\\src\\transformer\\events\\mod_book\\chapter_viewed" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/book/view.php?id=1&chapterid=2", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://id.tincanapi.com/activitytype/chapter", - "name": { - "en": "test_book_chapter_title" - }, - "description": { - "en": "test_book_chapter_content" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_book\\event\\chapter_viewed", - "event_function": "\\src\\transformer\\events\\mod_book\\chapter_viewed" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/book/view.php?id=1", - "definition": { - "type": "http://id.tincanapi.com/activitytype/book", - "name": { - "en": "test_book_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ], - "parent": [ - { - "id": "http://www.example.org/mod/book/view.php?id=1&chapterid=1", - "definition": { - "type": "http://id.tincanapi.com/activitytype/chapter", - "name": { - "en": "test_parent_name" - }, - "description": { - "en": "test_parent_content" - } - } - } - ] + }, + { + "id": "http://www.example.org/mod/book/view.php?id=1", + "definition": { + "type": "http://id.tincanapi.com/activitytype/book", + "name": { + "en": "test_book_name" + } } - } + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } + } + } + ], + "parent": [ + { + "id": "http://www.example.org/mod/book/view.php?id=1&chapterid=1", + "definition": { + "type": "http://id.tincanapi.com/activitytype/chapter", + "name": { + "en": "test_parent_name" + }, + "description": { + "en": "test_parent_content" + } + } + } + ] + } } + } ] diff --git a/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/data.json b/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/data.json index 54e5450ea..c09253463 100644 --- a/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/data.json +++ b/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/data.json @@ -1,46 +1,46 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "book" - } - ], - "book": [ - { - "id": 1, - "name": "test_book_name" - } - ], - "book_chapters": [ - { - "id": 1, - "bookid": "1", - "pagenum": "1", - "subchapter": "0", - "title": "test_book_chapter_title", - "content": "test_book_chapter_content
" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "book" + } + ], + "book": [ + { + "id": 1, + "name": "test_book_name" + } + ], + "book_chapters": [ + { + "id": 1, + "bookid": "1", + "pagenum": "1", + "subchapter": "0", + "title": "test_book_chapter_title", + "content": "test_book_chapter_content
" + } + ] +} diff --git a/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/event.json b/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/event.json index a688f8f2f..dd1e42e40 100644 --- a/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/event.json +++ b/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "book_chapters", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_book\\event\\chapter_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "book_chapters", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_book\\event\\chapter_viewed" +} diff --git a/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/statements.json b/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/statements.json index 7abde7b20..585978862 100644 --- a/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/statements.json +++ b/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/statements.json @@ -1,82 +1,82 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "viewed" + } + }, + "object": { + "id": "http://www.example.org/mod/book/view.php?id=1&chapterid=1", + "definition": { + "type": "http://id.tincanapi.com/activitytype/chapter", + "name": { + "en": "test_book_chapter_title" }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "viewed" + "description": { + "en": "test_book_chapter_content" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_book\\event\\chapter_viewed", + "event_function": "\\src\\transformer\\events\\mod_book\\chapter_viewed" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/book/view.php?id=1&chapterid=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://id.tincanapi.com/activitytype/chapter", - "name": { - "en": "test_book_chapter_title" - }, - "description": { - "en": "test_book_chapter_content" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_book\\event\\chapter_viewed", - "event_function": "\\src\\transformer\\events\\mod_book\\chapter_viewed" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/book/view.php?id=1", - "definition": { - "type": "http://id.tincanapi.com/activitytype/book", - "name": { - "en": "test_book_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + }, + { + "id": "http://www.example.org/mod/book/view.php?id=1", + "definition": { + "type": "http://id.tincanapi.com/activitytype/book", + "name": { + "en": "test_book_name" + } } - } + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } + } + } + ] + } } + } ] diff --git a/tests/mod_book/course_module_viewed/existing_module/data.json b/tests/mod_book/course_module_viewed/existing_module/data.json index fa2d5ca4e..d3f57bc7b 100644 --- a/tests/mod_book/course_module_viewed/existing_module/data.json +++ b/tests/mod_book/course_module_viewed/existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "book" - } - ], - "book": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "book" + } + ], + "book": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_book/course_module_viewed/existing_module/event.json b/tests/mod_book/course_module_viewed/existing_module/event.json index d176bb4f4..37b282b60 100644 --- a/tests/mod_book/course_module_viewed/existing_module/event.json +++ b/tests/mod_book/course_module_viewed/existing_module/event.json @@ -1,8 +1,8 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\mod_book\\event\\course_module_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\mod_book\\event\\course_module_viewed" +} diff --git a/tests/mod_book/course_module_viewed/existing_module/statements.json b/tests/mod_book/course_module_viewed/existing_module/statements.json index 4be32a8fc..533987a74 100644 --- a/tests/mod_book/course_module_viewed/existing_module/statements.json +++ b/tests/mod_book/course_module_viewed/existing_module/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "viewed" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "viewed" + } + }, + "object": { + "id": "http://www.example.org/mod/book/view.php?id=1", + "definition": { + "type": "http://id.tincanapi.com/activitytype/book", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_book\\event\\course_module_viewed", + "event_function": "\\src\\transformer\\events\\mod_book\\course_module_viewed" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/book/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://id.tincanapi.com/activitytype/book", - "name": { - "en": "test_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_book\\event\\course_module_viewed", - "event_function": "\\src\\transformer\\events\\mod_book\\course_module_viewed" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_chat/course_module_viewed/existing_module/data.json b/tests/mod_chat/course_module_viewed/existing_module/data.json index 458d90120..cac432e9b 100644 --- a/tests/mod_chat/course_module_viewed/existing_module/data.json +++ b/tests/mod_chat/course_module_viewed/existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "chat" - } - ], - "chat": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "chat" + } + ], + "chat": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_chat/course_module_viewed/existing_module/event.json b/tests/mod_chat/course_module_viewed/existing_module/event.json index 568564aa9..486aa04e2 100644 --- a/tests/mod_chat/course_module_viewed/existing_module/event.json +++ b/tests/mod_chat/course_module_viewed/existing_module/event.json @@ -1,8 +1,8 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\mod_chat\\event\\course_module_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\mod_chat\\event\\course_module_viewed" +} diff --git a/tests/mod_chat/course_module_viewed/existing_module/statements.json b/tests/mod_chat/course_module_viewed/existing_module/statements.json index b16f5e23a..b39b09e13 100644 --- a/tests/mod_chat/course_module_viewed/existing_module/statements.json +++ b/tests/mod_chat/course_module_viewed/existing_module/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "viewed" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "viewed" + } + }, + "object": { + "id": "http://www.example.org/mod/chat/view.php?id=1", + "definition": { + "type": "http://id.tincanapi.com/activitytype/chat-channel", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_chat\\event\\course_module_viewed", + "event_function": "\\src\\transformer\\events\\mod_chat\\course_module_viewed" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/chat/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://id.tincanapi.com/activitytype/chat-channel", - "name": { - "en": "test_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_chat\\event\\course_module_viewed", - "event_function": "\\src\\transformer\\events\\mod_chat\\course_module_viewed" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_choice/course_module_viewed/existing_module/data.json b/tests/mod_choice/course_module_viewed/existing_module/data.json index 8b7c0fde1..6520692ec 100644 --- a/tests/mod_choice/course_module_viewed/existing_module/data.json +++ b/tests/mod_choice/course_module_viewed/existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "choice" - } - ], - "choice": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "choice" + } + ], + "choice": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_choice/course_module_viewed/existing_module/event.json b/tests/mod_choice/course_module_viewed/existing_module/event.json index a8912b486..cbe892108 100644 --- a/tests/mod_choice/course_module_viewed/existing_module/event.json +++ b/tests/mod_choice/course_module_viewed/existing_module/event.json @@ -1,8 +1,8 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\mod_choice\\event\\course_module_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\mod_choice\\event\\course_module_viewed" +} diff --git a/tests/mod_data/course_module_viewed/existing_module/data.json b/tests/mod_data/course_module_viewed/existing_module/data.json index 4ed8b064b..6bd72543d 100644 --- a/tests/mod_data/course_module_viewed/existing_module/data.json +++ b/tests/mod_data/course_module_viewed/existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "data" - } - ], - "data": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "data" + } + ], + "data": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_data/course_module_viewed/existing_module/event.json b/tests/mod_data/course_module_viewed/existing_module/event.json index d9d17ff59..11d5220d9 100644 --- a/tests/mod_data/course_module_viewed/existing_module/event.json +++ b/tests/mod_data/course_module_viewed/existing_module/event.json @@ -1,8 +1,8 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\mod_data\\event\\course_module_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\mod_data\\event\\course_module_viewed" +} diff --git a/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/data.json b/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/data.json index 308c050f2..ec583c942 100644 --- a/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/data.json +++ b/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "facetoface" - } - ], - "facetoface": [ - { - "id": 1, - "name": "test_facetoface_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "facetoface" + } + ], + "facetoface": [ + { + "id": 1, + "name": "test_facetoface_name" + } + ] +} diff --git a/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/event.json b/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/event.json index dd36687a7..db9216904 100644 --- a/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/event.json +++ b/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "facetoface", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_facetoface\\event\\cancel_booking" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "facetoface", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_facetoface\\event\\cancel_booking" +} diff --git a/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/statements.json b/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/statements.json index ba643315c..3754d5e22 100644 --- a/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/statements.json +++ b/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/unregistered", - "display": { - "en": "unregistered from" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/unregistered", + "display": { + "en": "unregistered from" + } + }, + "object": { + "id": "http://www.example.org/mod/facetoface/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/acrossx/activities/face-to-face-discussion", + "name": { + "en": "test_facetoface_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_facetoface\\event\\cancel_booking", + "event_function": "\\src\\transformer\\events\\mod_facetoface\\cancel_booking" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/facetoface/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "https://w3id.org/xapi/acrossx/activities/face-to-face-discussion", - "name": { - "en": "test_facetoface_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_facetoface\\event\\cancel_booking", - "event_function": "\\src\\transformer\\events\\mod_facetoface\\cancel_booking" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_facetoface/course_module_viewed/existing_module/data.json b/tests/mod_facetoface/course_module_viewed/existing_module/data.json index d8ce6fe62..0a4a31c94 100644 --- a/tests/mod_facetoface/course_module_viewed/existing_module/data.json +++ b/tests/mod_facetoface/course_module_viewed/existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "facetoface" - } - ], - "facetoface": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "facetoface" + } + ], + "facetoface": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_facetoface/course_module_viewed/existing_module/event.json b/tests/mod_facetoface/course_module_viewed/existing_module/event.json index 9793c6a1d..cf838704f 100644 --- a/tests/mod_facetoface/course_module_viewed/existing_module/event.json +++ b/tests/mod_facetoface/course_module_viewed/existing_module/event.json @@ -1,8 +1,8 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\mod_facetoface\\event\\course_module_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\mod_facetoface\\event\\course_module_viewed" +} diff --git a/tests/mod_facetoface/signup_success/existing_signup_success/data.json b/tests/mod_facetoface/signup_success/existing_signup_success/data.json index 308c050f2..ec583c942 100644 --- a/tests/mod_facetoface/signup_success/existing_signup_success/data.json +++ b/tests/mod_facetoface/signup_success/existing_signup_success/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "facetoface" - } - ], - "facetoface": [ - { - "id": 1, - "name": "test_facetoface_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "facetoface" + } + ], + "facetoface": [ + { + "id": 1, + "name": "test_facetoface_name" + } + ] +} diff --git a/tests/mod_facetoface/signup_success/existing_signup_success/event.json b/tests/mod_facetoface/signup_success/existing_signup_success/event.json index dbe4e774b..d0302ddcb 100644 --- a/tests/mod_facetoface/signup_success/existing_signup_success/event.json +++ b/tests/mod_facetoface/signup_success/existing_signup_success/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "facetoface", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_facetoface\\event\\signup_success" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "facetoface", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_facetoface\\event\\signup_success" +} diff --git a/tests/mod_facetoface/signup_success/existing_signup_success/statements.json b/tests/mod_facetoface/signup_success/existing_signup_success/statements.json index cf6198a3c..8ba995c5e 100644 --- a/tests/mod_facetoface/signup_success/existing_signup_success/statements.json +++ b/tests/mod_facetoface/signup_success/existing_signup_success/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/registered", - "display": { - "en": "registered to" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/registered", + "display": { + "en": "registered to" + } + }, + "object": { + "id": "http://www.example.org/mod/facetoface/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/acrossx/activities/face-to-face-discussion", + "name": { + "en": "test_facetoface_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_facetoface\\event\\signup_success", + "event_function": "\\src\\transformer\\events\\mod_facetoface\\signup_success" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/facetoface/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "https://w3id.org/xapi/acrossx/activities/face-to-face-discussion", - "name": { - "en": "test_facetoface_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_facetoface\\event\\signup_success", - "event_function": "\\src\\transformer\\events\\mod_facetoface\\signup_success" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_facetoface/take_attendance/existing_attendance_taken/data.json b/tests/mod_facetoface/take_attendance/existing_attendance_taken/data.json index fc4cb9923..af1369da4 100644 --- a/tests/mod_facetoface/take_attendance/existing_attendance_taken/data.json +++ b/tests/mod_facetoface/take_attendance/existing_attendance_taken/data.json @@ -1,70 +1,70 @@ { - "user": [ - { - "id": 1, - "firstname": "test_instructor_name", - "email": "instructor@test.com" - }, - { - "id": 2, - "firstname": "test_attendee_name", - "email": "attendee@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "facetoface" - } - ], - "facetoface": [ - { - "id": 1, - "name": "test_facetoface_name" - } - ], - "facetoface_sessions": [ - { - "id": 1, - "facetoface": 1 - } - ], - "facetoface_signups": [ - { - "id": 1, - "sessionid": 1, - "userid": 2 - } - ], - "facetoface_sessions_dates": [ - { - "id": 1, - "sessionid": 1, - "timestart": 123123123, - "timefinish": 123123123 - } - ], - "facetoface_signups_status": [ - { - "id": 1, - "signupid": 1, - "timecreated": 123123123, - "statuscode": 100 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_instructor_name", + "email": "instructor@test.com" + }, + { + "id": 2, + "firstname": "test_attendee_name", + "email": "attendee@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "facetoface" + } + ], + "facetoface": [ + { + "id": 1, + "name": "test_facetoface_name" + } + ], + "facetoface_sessions": [ + { + "id": 1, + "facetoface": 1 + } + ], + "facetoface_signups": [ + { + "id": 1, + "sessionid": 1, + "userid": 2 + } + ], + "facetoface_sessions_dates": [ + { + "id": 1, + "sessionid": 1, + "timestart": 123123123, + "timefinish": 123123123 + } + ], + "facetoface_signups_status": [ + { + "id": 1, + "signupid": 1, + "timecreated": 123123123, + "statuscode": 100 + } + ] +} diff --git a/tests/mod_facetoface/take_attendance/existing_attendance_taken/event.json b/tests/mod_facetoface/take_attendance/existing_attendance_taken/event.json index 899b891ad..3f89bfefb 100644 --- a/tests/mod_facetoface/take_attendance/existing_attendance_taken/event.json +++ b/tests/mod_facetoface/take_attendance/existing_attendance_taken/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "facetoface", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_facetoface\\event\\take_attendance" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "facetoface", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_facetoface\\event\\take_attendance" +} diff --git a/tests/mod_facetoface/take_attendance/existing_attendance_taken/statements.json b/tests/mod_facetoface/take_attendance/existing_attendance_taken/statements.json index 9cbbb8c49..680b6ce3f 100644 --- a/tests/mod_facetoface/take_attendance/existing_attendance_taken/statements.json +++ b/tests/mod_facetoface/take_attendance/existing_attendance_taken/statements.json @@ -1,81 +1,81 @@ [ - { - "actor": { - "name": "test_attendee_name", - "account": { - "homePage": "http://www.example.org", - "name": "2" - } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/attended", - "display": { - "en": "attended" + { + "actor": { + "name": "test_attendee_name", + "account": { + "homePage": "http://www.example.org", + "name": "2" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/attended", + "display": { + "en": "attended" + } + }, + "object": { + "id": "http://www.example.org/mod/facetoface/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/acrossx/activities/face-to-face-discussion", + "name": { + "en": "test_facetoface_name" + } + } + }, + "result": { + "duration": "PT0S", + "completion": true + }, + "context": { + "language": "en", + "instructor": { + "name": "test_instructor_name", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_facetoface\\event\\take_attendance", + "event_function": "\\src\\transformer\\events\\mod_facetoface\\take_attendance" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/facetoface/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "https://w3id.org/xapi/acrossx/activities/face-to-face-discussion", - "name": { - "en": "test_facetoface_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "duration": "PT0S", - "completion": true - }, - "context": { - "language": "en", - "instructor": { - "name": "test_instructor_name", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_facetoface\\event\\take_attendance", - "event_function": "\\src\\transformer\\events\\mod_facetoface\\take_attendance" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_feedback/course_module_viewed/viewing_feedback/data.json b/tests/mod_feedback/course_module_viewed/viewing_feedback/data.json index 1d650a7e7..dea0aef00 100644 --- a/tests/mod_feedback/course_module_viewed/viewing_feedback/data.json +++ b/tests/mod_feedback/course_module_viewed/viewing_feedback/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "feedback" - } - ], - "feedback": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "feedback" + } + ], + "feedback": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_feedback/course_module_viewed/viewing_feedback/event.json b/tests/mod_feedback/course_module_viewed/viewing_feedback/event.json index df521308d..e82e710b1 100644 --- a/tests/mod_feedback/course_module_viewed/viewing_feedback/event.json +++ b/tests/mod_feedback/course_module_viewed/viewing_feedback/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_feedback\\event\\course_module_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_feedback\\event\\course_module_viewed" +} diff --git a/tests/mod_feedback/response_submitted/multichoice/data.json b/tests/mod_feedback/response_submitted/multichoice/data.json index ed32d2412..8d4359550 100644 --- a/tests/mod_feedback/response_submitted/multichoice/data.json +++ b/tests/mod_feedback/response_submitted/multichoice/data.json @@ -1,59 +1,59 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "feedback" - } - ], - "feedback_completed": [ - { - "id": 1, - "feedback": 1 - } - ], - "feedback": [ - { - "id": 1, - "name": "test_feedback_name" - } - ], - "feedback_item": [ - { - "id": 1, - "feedback": 1, - "name": "test_feedback_item", - "typ": "multichoice", - "presentation": "r>>>>>test_choice_1\n|test_choice_2\n|test_choice_3" - } - ], - "feedback_value": [ - { - "id": 1, - "item": 1, - "completed": 1, - "value": "2" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "feedback" + } + ], + "feedback_completed": [ + { + "id": 1, + "feedback": 1 + } + ], + "feedback": [ + { + "id": 1, + "name": "test_feedback_name" + } + ], + "feedback_item": [ + { + "id": 1, + "feedback": 1, + "name": "test_feedback_item", + "typ": "multichoice", + "presentation": "r>>>>>test_choice_1\n|test_choice_2\n|test_choice_3" + } + ], + "feedback_value": [ + { + "id": 1, + "item": 1, + "completed": 1, + "value": "2" + } + ] +} diff --git a/tests/mod_feedback/response_submitted/multichoice/event.json b/tests/mod_feedback/response_submitted/multichoice/event.json index 5cd948b5e..bd62a9675 100644 --- a/tests/mod_feedback/response_submitted/multichoice/event.json +++ b/tests/mod_feedback/response_submitted/multichoice/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_feedback\\event\\response_submitted" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_feedback\\event\\response_submitted" +} diff --git a/tests/mod_feedback/response_submitted/multichoicerated/data.json b/tests/mod_feedback/response_submitted/multichoicerated/data.json index fbf122717..230899407 100644 --- a/tests/mod_feedback/response_submitted/multichoicerated/data.json +++ b/tests/mod_feedback/response_submitted/multichoicerated/data.json @@ -1,59 +1,59 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "feedback" - } - ], - "feedback_completed": [ - { - "id": 1, - "feedback": 1 - } - ], - "feedback": [ - { - "id": 1, - "name": "test_feedback_name" - } - ], - "feedback_item": [ - { - "id": 1, - "feedback": 1, - "name": "test_feedback_item", - "typ": "multichoicerated", - "presentation": "r>>>>>3####test_choice_1|2####test_choice_2|1####test_choice_3" - } - ], - "feedback_value": [ - { - "id": 1, - "item": 1, - "completed": 1, - "value": "3" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "feedback" + } + ], + "feedback_completed": [ + { + "id": 1, + "feedback": 1 + } + ], + "feedback": [ + { + "id": 1, + "name": "test_feedback_name" + } + ], + "feedback_item": [ + { + "id": 1, + "feedback": 1, + "name": "test_feedback_item", + "typ": "multichoicerated", + "presentation": "r>>>>>3####test_choice_1|2####test_choice_2|1####test_choice_3" + } + ], + "feedback_value": [ + { + "id": 1, + "item": 1, + "completed": 1, + "value": "3" + } + ] +} diff --git a/tests/mod_feedback/response_submitted/multichoicerated/event.json b/tests/mod_feedback/response_submitted/multichoicerated/event.json index 5cd948b5e..bd62a9675 100644 --- a/tests/mod_feedback/response_submitted/multichoicerated/event.json +++ b/tests/mod_feedback/response_submitted/multichoicerated/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_feedback\\event\\response_submitted" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_feedback\\event\\response_submitted" +} diff --git a/tests/mod_feedback/response_submitted/no_items/data.json b/tests/mod_feedback/response_submitted/no_items/data.json index a7269a4ea..8a6c522ae 100644 --- a/tests/mod_feedback/response_submitted/no_items/data.json +++ b/tests/mod_feedback/response_submitted/no_items/data.json @@ -1,43 +1,43 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "feedback" - } - ], - "feedback_completed": [ - { - "id": 1, - "feedback": 1 - } - ], - "feedback": [ - { - "id": 1, - "name": "test_feedback_name" - } - ], - "feedback_value": [] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "feedback" + } + ], + "feedback_completed": [ + { + "id": 1, + "feedback": 1 + } + ], + "feedback": [ + { + "id": 1, + "name": "test_feedback_name" + } + ], + "feedback_value": [] +} diff --git a/tests/mod_feedback/response_submitted/no_items/event.json b/tests/mod_feedback/response_submitted/no_items/event.json index 5cd948b5e..bd62a9675 100644 --- a/tests/mod_feedback/response_submitted/no_items/event.json +++ b/tests/mod_feedback/response_submitted/no_items/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_feedback\\event\\response_submitted" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_feedback\\event\\response_submitted" +} diff --git a/tests/mod_feedback/response_submitted/numerical/data.json b/tests/mod_feedback/response_submitted/numerical/data.json index 04dec96f2..72e8b4ed8 100644 --- a/tests/mod_feedback/response_submitted/numerical/data.json +++ b/tests/mod_feedback/response_submitted/numerical/data.json @@ -1,58 +1,58 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "feedback" - } - ], - "feedback_completed": [ - { - "id": 1, - "feedback": 1 - } - ], - "feedback": [ - { - "id": 1, - "name": "test_feedback_name" - } - ], - "feedback_item": [ - { - "id": 1, - "feedback": 1, - "name": "test_feedback_item", - "typ": "numeric" - } - ], - "feedback_value": [ - { - "id": 1, - "item": 1, - "completed": 1, - "value": "3" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "feedback" + } + ], + "feedback_completed": [ + { + "id": 1, + "feedback": 1 + } + ], + "feedback": [ + { + "id": 1, + "name": "test_feedback_name" + } + ], + "feedback_item": [ + { + "id": 1, + "feedback": 1, + "name": "test_feedback_item", + "typ": "numeric" + } + ], + "feedback_value": [ + { + "id": 1, + "item": 1, + "completed": 1, + "value": "3" + } + ] +} diff --git a/tests/mod_feedback/response_submitted/numerical/event.json b/tests/mod_feedback/response_submitted/numerical/event.json index 5cd948b5e..bd62a9675 100644 --- a/tests/mod_feedback/response_submitted/numerical/event.json +++ b/tests/mod_feedback/response_submitted/numerical/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_feedback\\event\\response_submitted" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_feedback\\event\\response_submitted" +} diff --git a/tests/mod_feedback/response_submitted/textarea/data.json b/tests/mod_feedback/response_submitted/textarea/data.json index 14505ed54..36fb378d8 100644 --- a/tests/mod_feedback/response_submitted/textarea/data.json +++ b/tests/mod_feedback/response_submitted/textarea/data.json @@ -1,58 +1,58 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "feedback" - } - ], - "feedback_completed": [ - { - "id": 1, - "feedback": 1 - } - ], - "feedback": [ - { - "id": 1, - "name": "test_feedback_name" - } - ], - "feedback_item": [ - { - "id": 1, - "feedback": 1, - "name": "test_feedback_item", - "typ": "textarea" - } - ], - "feedback_value": [ - { - "id": 1, - "item": 1, - "completed": 1, - "value": "test_long_text_answer" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "feedback" + } + ], + "feedback_completed": [ + { + "id": 1, + "feedback": 1 + } + ], + "feedback": [ + { + "id": 1, + "name": "test_feedback_name" + } + ], + "feedback_item": [ + { + "id": 1, + "feedback": 1, + "name": "test_feedback_item", + "typ": "textarea" + } + ], + "feedback_value": [ + { + "id": 1, + "item": 1, + "completed": 1, + "value": "test_long_text_answer" + } + ] +} diff --git a/tests/mod_feedback/response_submitted/textarea/event.json b/tests/mod_feedback/response_submitted/textarea/event.json index 5cd948b5e..bd62a9675 100644 --- a/tests/mod_feedback/response_submitted/textarea/event.json +++ b/tests/mod_feedback/response_submitted/textarea/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_feedback\\event\\response_submitted" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_feedback\\event\\response_submitted" +} diff --git a/tests/mod_feedback/response_submitted/textfield/data.json b/tests/mod_feedback/response_submitted/textfield/data.json index dec1f8f83..9724b537b 100644 --- a/tests/mod_feedback/response_submitted/textfield/data.json +++ b/tests/mod_feedback/response_submitted/textfield/data.json @@ -1,58 +1,58 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "feedback" - } - ], - "feedback_completed": [ - { - "id": 1, - "feedback": 1 - } - ], - "feedback": [ - { - "id": 1, - "name": "test_feedback_name" - } - ], - "feedback_item": [ - { - "id": 1, - "feedback": 1, - "name": "test_feedback_item", - "typ": "textfield" - } - ], - "feedback_value": [ - { - "id": 1, - "item": 1, - "completed": 1, - "value": "test_short_text_answer" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "feedback" + } + ], + "feedback_completed": [ + { + "id": 1, + "feedback": 1 + } + ], + "feedback": [ + { + "id": 1, + "name": "test_feedback_name" + } + ], + "feedback_item": [ + { + "id": 1, + "feedback": 1, + "name": "test_feedback_item", + "typ": "textfield" + } + ], + "feedback_value": [ + { + "id": 1, + "item": 1, + "completed": 1, + "value": "test_short_text_answer" + } + ] +} diff --git a/tests/mod_feedback/response_submitted/textfield/event.json b/tests/mod_feedback/response_submitted/textfield/event.json index 5cd948b5e..bd62a9675 100644 --- a/tests/mod_feedback/response_submitted/textfield/event.json +++ b/tests/mod_feedback/response_submitted/textfield/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_feedback\\event\\response_submitted" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_feedback\\event\\response_submitted" +} diff --git a/tests/mod_feedback/response_submitted/unknown_typ/data.json b/tests/mod_feedback/response_submitted/unknown_typ/data.json index 0d9c07192..87c2e8bdd 100644 --- a/tests/mod_feedback/response_submitted/unknown_typ/data.json +++ b/tests/mod_feedback/response_submitted/unknown_typ/data.json @@ -1,57 +1,57 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "feedback" - } - ], - "feedback_completed": [ - { - "id": 1, - "feedback": 1 - } - ], - "feedback": [ - { - "id": 1, - "name": "test_feedback_name" - } - ], - "feedback_item": [ - { - "id": 1, - "feedback": 1, - "name": "test_feedback_item", - "typ": "unknown" - } - ], - "feedback_value": [ - { - "id": 1, - "item": 1, - "completed": 1 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "feedback" + } + ], + "feedback_completed": [ + { + "id": 1, + "feedback": 1 + } + ], + "feedback": [ + { + "id": 1, + "name": "test_feedback_name" + } + ], + "feedback_item": [ + { + "id": 1, + "feedback": 1, + "name": "test_feedback_item", + "typ": "unknown" + } + ], + "feedback_value": [ + { + "id": 1, + "item": 1, + "completed": 1 + } + ] +} diff --git a/tests/mod_feedback/response_submitted/unknown_typ/event.json b/tests/mod_feedback/response_submitted/unknown_typ/event.json index 5cd948b5e..bd62a9675 100644 --- a/tests/mod_feedback/response_submitted/unknown_typ/event.json +++ b/tests/mod_feedback/response_submitted/unknown_typ/event.json @@ -1,9 +1,9 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_feedback\\event\\response_submitted" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_feedback\\event\\response_submitted" +} diff --git a/tests/mod_folder/course_module_viewed/existing_module/data.json b/tests/mod_folder/course_module_viewed/existing_module/data.json index 4b49da023..9ed0f0591 100644 --- a/tests/mod_folder/course_module_viewed/existing_module/data.json +++ b/tests/mod_folder/course_module_viewed/existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "folder" - } - ], - "folder": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "folder" + } + ], + "folder": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_folder/course_module_viewed/existing_module/event.json b/tests/mod_folder/course_module_viewed/existing_module/event.json index dcd8bf9a0..36cd354ba 100644 --- a/tests/mod_folder/course_module_viewed/existing_module/event.json +++ b/tests/mod_folder/course_module_viewed/existing_module/event.json @@ -1,8 +1,8 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\mod_folder\\event\\course_module_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\mod_folder\\event\\course_module_viewed" +} diff --git a/tests/mod_folder/course_module_viewed/existing_module/statements.json b/tests/mod_folder/course_module_viewed/existing_module/statements.json index 33189428f..9accd76d8 100644 --- a/tests/mod_folder/course_module_viewed/existing_module/statements.json +++ b/tests/mod_folder/course_module_viewed/existing_module/statements.json @@ -1,70 +1,70 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "viewed" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "viewed" + } + }, + "object": { + "id": "http://www.example.org/mod/folder/view.php?id=1", + "definition": { + "type": "http://activitystrea.ms/collection", + "name": { + "en": "test_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_folder\\event\\course_module_viewed", + "event_function": "\\src\\transformer\\events\\all\\course_module_viewed" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/folder/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://activitystrea.ms/collection", - "name": { - "en": "test_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_folder\\event\\course_module_viewed", - "event_function": "\\src\\transformer\\events\\all\\course_module_viewed" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_forum/course_module_viewed/existing_module/data.json b/tests/mod_forum/course_module_viewed/existing_module/data.json index 096b2fce5..ca305a9a2 100644 --- a/tests/mod_forum/course_module_viewed/existing_module/data.json +++ b/tests/mod_forum/course_module_viewed/existing_module/data.json @@ -1,36 +1,36 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "forum" - } - ], - "forum": [ - { - "id": 1, - "name": "test_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "forum" + } + ], + "forum": [ + { + "id": 1, + "name": "test_name" + } + ] +} diff --git a/tests/mod_forum/course_module_viewed/existing_module/event.json b/tests/mod_forum/course_module_viewed/existing_module/event.json index 5e3057900..535b8bd4d 100644 --- a/tests/mod_forum/course_module_viewed/existing_module/event.json +++ b/tests/mod_forum/course_module_viewed/existing_module/event.json @@ -1,8 +1,8 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "contextinstanceid": 1, - "eventname": "\\mod_forum\\event\\course_module_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "contextinstanceid": 1, + "eventname": "\\mod_forum\\event\\course_module_viewed" +} diff --git a/tests/mod_forum/discussion_created/data.json b/tests/mod_forum/discussion_created/data.json index b91a718c6..ea70257e1 100644 --- a/tests/mod_forum/discussion_created/data.json +++ b/tests/mod_forum/discussion_created/data.json @@ -1,42 +1,42 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "forum" - } - ], - "forum": [ - { - "id": 1, - "name": "test_forum_name" - } - ], - "forum_discussions": [ - { - "id": 1, - "name": "test_forum_discussion_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "forum" + } + ], + "forum": [ + { + "id": 1, + "name": "test_forum_name" + } + ], + "forum_discussions": [ + { + "id": 1, + "name": "test_forum_discussion_name" + } + ] +} diff --git a/tests/mod_forum/discussion_created/event.json b/tests/mod_forum/discussion_created/event.json index 9e0c6072e..ccecfd346 100644 --- a/tests/mod_forum/discussion_created/event.json +++ b/tests/mod_forum/discussion_created/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "forum", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_forum\\event\\discussion_created" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "forum", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_forum\\event\\discussion_created" +} diff --git a/tests/mod_forum/discussion_created/statements.json b/tests/mod_forum/discussion_created/statements.json index 54a14cb0b..bb56e776b 100644 --- a/tests/mod_forum/discussion_created/statements.json +++ b/tests/mod_forum/discussion_created/statements.json @@ -1,79 +1,79 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://activitystrea.ms/schema/1.0/create", + "display": { + "en": "created" + } + }, + "object": { + "id": "http://www.example.org/mod/forum/discuss.php?d=1", + "definition": { + "type": "http://id.tincanapi.com/activitytype/discussion", + "name": { + "en": "test_forum_discussion_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_forum\\event\\discussion_created", + "event_function": "\\src\\transformer\\events\\mod_forum\\discussion_created" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "verb": { - "id": "http://activitystrea.ms/schema/1.0/create", - "display": { - "en": "created" + }, + { + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/forum/discuss.php?d=1", + }, + { + "id": "http://www.example.org/mod/forum/view.php?id=1", "definition": { - "type": "http://id.tincanapi.com/activitytype/discussion", - "name": { - "en": "test_forum_discussion_name" - } + "type": "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/forum", + "name": { + "en": "test_forum_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_forum\\event\\discussion_created", - "event_function": "\\src\\transformer\\events\\mod_forum\\discussion_created" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/forum/view.php?id=1", - "definition": { - "type": "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/forum", - "name": { - "en": "test_forum_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_forum/discussion_viewed/existing_discussion_viewed/data.json b/tests/mod_forum/discussion_viewed/existing_discussion_viewed/data.json index b91a718c6..ea70257e1 100644 --- a/tests/mod_forum/discussion_viewed/existing_discussion_viewed/data.json +++ b/tests/mod_forum/discussion_viewed/existing_discussion_viewed/data.json @@ -1,42 +1,42 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "forum" - } - ], - "forum": [ - { - "id": 1, - "name": "test_forum_name" - } - ], - "forum_discussions": [ - { - "id": 1, - "name": "test_forum_discussion_name" - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "forum" + } + ], + "forum": [ + { + "id": 1, + "name": "test_forum_name" + } + ], + "forum_discussions": [ + { + "id": 1, + "name": "test_forum_discussion_name" + } + ] +} diff --git a/tests/mod_forum/discussion_viewed/existing_discussion_viewed/event.json b/tests/mod_forum/discussion_viewed/existing_discussion_viewed/event.json index 75b8fdab9..0ef8b3079 100644 --- a/tests/mod_forum/discussion_viewed/existing_discussion_viewed/event.json +++ b/tests/mod_forum/discussion_viewed/existing_discussion_viewed/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "userid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "forum", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_forum\\event\\discussion_viewed" -} \ No newline at end of file + "id": 1, + "userid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "forum", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_forum\\event\\discussion_viewed" +} diff --git a/tests/mod_forum/discussion_viewed/existing_discussion_viewed/statements.json b/tests/mod_forum/discussion_viewed/existing_discussion_viewed/statements.json index 9343f789c..1beba29db 100644 --- a/tests/mod_forum/discussion_viewed/existing_discussion_viewed/statements.json +++ b/tests/mod_forum/discussion_viewed/existing_discussion_viewed/statements.json @@ -1,79 +1,79 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://id.tincanapi.com/verb/viewed", + "display": { + "en": "viewed" + } + }, + "object": { + "id": "http://www.example.org/mod/forum/discuss.php?d=1", + "definition": { + "type": "http://id.tincanapi.com/activitytype/discussion", + "name": { + "en": "test_forum_discussion_name" + } + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_forum\\event\\discussion_viewed", + "event_function": "\\src\\transformer\\events\\mod_forum\\discussion_viewed" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "verb": { - "id": "http://id.tincanapi.com/verb/viewed", - "display": { - "en": "viewed" + }, + { + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/forum/discuss.php?d=1", + }, + { + "id": "http://www.example.org/mod/forum/view.php?id=1", "definition": { - "type": "http://id.tincanapi.com/activitytype/discussion", - "name": { - "en": "test_forum_discussion_name" - } + "type": "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/forum", + "name": { + "en": "test_forum_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_forum\\event\\discussion_viewed", - "event_function": "\\src\\transformer\\events\\mod_forum\\discussion_viewed" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/forum/view.php?id=1", - "definition": { - "type": "https://xapi.edlm/profiles/edlm-lms/concepts/activity-types/forum", - "name": { - "en": "test_forum_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_forum/post_created/data.json b/tests/mod_forum/post_created/data.json index 7127e1c86..167864d29 100644 --- a/tests/mod_forum/post_created/data.json +++ b/tests/mod_forum/post_created/data.json @@ -1,49 +1,48 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "forum" - } - ], - "forum": [ - { - "id": 1, - "name": "test_forum_name" - } - ], - "forum_discussions": [ - { - "id": 1, - "name": "test_forum_discussion_name" - } - ], - "forum_posts": [ - { - "id": 1, - "message": "Example [[1]] missing [[2]] words [[3]]
" - } - ], - "grade_grades": [ - { - "itemid": 1, - "userid": 1, - "rawgrade": 50 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "quiz" + } + ], + "quiz_attempts": [ + { + "id": 1, + "quiz": 1, + "uniqueid": 1, + "sumgrades": 50, + "state": "finished", + "timefinish": 1, + "timestart": 0 + } + ], + "question_usages": [ + { + "id": 1 + } + ], + "quiz": [ + { + "id": 1, + "name": "test_quiz_name" + } + ], + "grade_items": [ + { + "id": 1, + "iteminstance": 1, + "itemmodule": "quiz", + "grademin": 0, + "grademax": 100, + "gradepass": 50 + } + ], + "question_attempts": [ + { + "id": 1, + "questionusageid": 1, + "questionid": 1, + "rightanswer": "{spicy} {mango} {milkshake}", + "responsesummary": "{spicy} {mango} {milkshake}" + } + ], + "question": [ + { + "id": 1, + "qtype": "gapselect", + "questiontext": "Example [[1]] missing [[2]] words [[3]]
" + } + ], + "grade_grades": [ + { + "itemid": 1, + "userid": 1, + "rawgrade": 50 + } + ] +} diff --git a/tests/mod_quiz/attempt_submitted/gapselect/event.json b/tests/mod_quiz/attempt_submitted/gapselect/event.json index 0f8370b23..87f94acf8 100644 --- a/tests/mod_quiz/attempt_submitted/gapselect/event.json +++ b/tests/mod_quiz/attempt_submitted/gapselect/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "attempt", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_quiz\\event\\attempt_submitted" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "attempt", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_quiz\\event\\attempt_submitted" +} diff --git a/tests/mod_quiz/attempt_submitted/gapselect/statements.json b/tests/mod_quiz/attempt_submitted/gapselect/statements.json index 8d2ce3b9c..9eabeb7c7 100644 --- a/tests/mod_quiz/attempt_submitted/gapselect/statements.json +++ b/tests/mod_quiz/attempt_submitted/gapselect/statements.json @@ -1,191 +1,191 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/completed", + "display": { + "en": "completed" + } + }, + "object": { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } + } + }, + "result": { + "score": { + "raw": 50, + "min": 0, + "max": 100, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "duration": "PT1S" + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "other": [ + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/completed", - "display": { - "en": "completed" + } + ], + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/quiz/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "score": { - "raw": 50, - "min": 0, - "max": 100, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "duration": "PT1S" - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "other": [ - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } + } + }, + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } }, - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } + "verb": { + "id": "http://adlnet.gov/expapi/verbs/answered", + "display": { + "en": "answered" + } + }, + "object": { + "id": "http://www.example.org/question/question.php?cmid=1&id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/cmi.interaction", + "name": { + "en": "Example [[1]] missing [[2]] words [[3]]" }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/answered", - "display": { - "en": "answered" + "interactionType": "sequencing" + } + }, + "result": { + "response": "spicy[,]mango[,]milkshake", + "completion": true, + "success": true, + "extensions": { + "http://learninglocker.net/xapi/cmi/sequencing/response": [ + "spicy", + "mango", + "milkshake" + ] + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/question/question.php?cmid=1&id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/cmi.interaction", - "name": { - "en": "Example [[1]] missing [[2]] words [[3]]" - }, - "interactionType": "sequencing" + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "response": "spicy[,]mango[,]milkshake", - "completion": true, - "success": true, - "extensions": { - "http://learninglocker.net/xapi/cmi/sequencing/response": [ - "spicy", - "mango", - "milkshake" - ] + }, + { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/view.php?id=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + }, + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - } + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } + } + } + ] + } } + } ] diff --git a/tests/mod_quiz/attempt_submitted/match/data.json b/tests/mod_quiz/attempt_submitted/match/data.json index 8fc2dcf43..19b0def7f 100644 --- a/tests/mod_quiz/attempt_submitted/match/data.json +++ b/tests/mod_quiz/attempt_submitted/match/data.json @@ -1,86 +1,85 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "quiz" - } - ], - "quiz_attempts": [ - { - "id": 1, - "quiz": 1, - "uniqueid": 1, - "sumgrades": 50, - "state": "finished", - "timefinish": 1, - "timestart": 0 - } - ], - "question_usages": [ - { - "id": 1 - - } - ], - "quiz": [ - { - "id": 1, - "name": "test_quiz_name" - } - ], - "grade_items": [ - { - "id": 1, - "iteminstance": 1, - "itemmodule": "quiz", - "grademin": 0, - "grademax": 100, - "gradepass": 50 - } - ], - "question_attempts": [ - { - "id": 1, - "questionusageid": 1, - "questionid": 1, - "responsesummary": "Red\n -> Green; Blue\n -> Orange; Black\n -> White", - "rightanswer": "Red\n -> Green; Blue\n -> Orange; Black\n -> White" - } - ], - "question": [ - { - "id": 1, - "qtype": "match", - "questiontext": "test_question" - } - ], - "grade_grades": [ - { - "itemid": 1, - "userid": 1, - "rawgrade": 50 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "quiz" + } + ], + "quiz_attempts": [ + { + "id": 1, + "quiz": 1, + "uniqueid": 1, + "sumgrades": 50, + "state": "finished", + "timefinish": 1, + "timestart": 0 + } + ], + "question_usages": [ + { + "id": 1 + } + ], + "quiz": [ + { + "id": 1, + "name": "test_quiz_name" + } + ], + "grade_items": [ + { + "id": 1, + "iteminstance": 1, + "itemmodule": "quiz", + "grademin": 0, + "grademax": 100, + "gradepass": 50 + } + ], + "question_attempts": [ + { + "id": 1, + "questionusageid": 1, + "questionid": 1, + "responsesummary": "Red\n -> Green; Blue\n -> Orange; Black\n -> White", + "rightanswer": "Red\n -> Green; Blue\n -> Orange; Black\n -> White" + } + ], + "question": [ + { + "id": 1, + "qtype": "match", + "questiontext": "test_question" + } + ], + "grade_grades": [ + { + "itemid": 1, + "userid": 1, + "rawgrade": 50 + } + ] +} diff --git a/tests/mod_quiz/attempt_submitted/match/event.json b/tests/mod_quiz/attempt_submitted/match/event.json index 0f8370b23..87f94acf8 100644 --- a/tests/mod_quiz/attempt_submitted/match/event.json +++ b/tests/mod_quiz/attempt_submitted/match/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "attempt", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_quiz\\event\\attempt_submitted" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "attempt", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_quiz\\event\\attempt_submitted" +} diff --git a/tests/mod_quiz/attempt_submitted/match/statements.json b/tests/mod_quiz/attempt_submitted/match/statements.json index b5be54001..d00ff63f2 100644 --- a/tests/mod_quiz/attempt_submitted/match/statements.json +++ b/tests/mod_quiz/attempt_submitted/match/statements.json @@ -1,191 +1,191 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/completed", + "display": { + "en": "completed" + } + }, + "object": { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } + } + }, + "result": { + "score": { + "raw": 50, + "min": 0, + "max": 100, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "duration": "PT1S" + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "other": [ + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/completed", - "display": { - "en": "completed" + } + ], + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/quiz/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "score": { - "raw": 50, - "min": 0, - "max": 100, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "duration": "PT1S" - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "other": [ - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } + } + ] + } + } + }, + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/answered", + "display": { + "en": "answered" + } + }, + "object": { + "id": "http://www.example.org/question/question.php?cmid=1&id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/cmi.interaction", + "name": { + "en": "test_question" + }, + "interactionType": "matching" + } + }, + "result": { + "response": "Red\n -> Green; Blue\n -> Orange; Black\n -> White", + "completion": true, + "success": true, + "extensions": { + "http://learninglocker.net/xapi/cmi/matching/response": { + "Red": "Green", + "Blue": "Orange", + "Black": "White" } + } }, - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/answered", - "display": { - "en": "answered" + }, + { + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/question/question.php?cmid=1&id=1", + }, + { + "id": "http://www.example.org/mod/quiz/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/cmi.interaction", - "name": { - "en": "test_question" - }, - "interactionType": "matching" + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } } - }, - "result": { - "response": "Red\n -> Green; Blue\n -> Orange; Black\n -> White", - "completion": true, - "success": true, - "extensions": { - "http://learninglocker.net/xapi/cmi/matching/response": { - "Red": "Green", - "Blue": "Orange", - "Black": "White" - } + }, + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/view.php?id=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_quiz/attempt_submitted/multichoice/data.json b/tests/mod_quiz/attempt_submitted/multichoice/data.json index 4c04a527e..9ef57e093 100644 --- a/tests/mod_quiz/attempt_submitted/multichoice/data.json +++ b/tests/mod_quiz/attempt_submitted/multichoice/data.json @@ -1,106 +1,105 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "quiz" - } - ], - "quiz_attempts": [ - { - "id": 1, - "quiz": 1, - "uniqueid": 1, - "sumgrades": 50, - "state": "finished", - "timefinish": 1, - "timestart": 0 - } - ], - "question_usages": [ - { - "id": 1 - - } - ], - "quiz": [ - { - "id": 1, - "name": "test_quiz_name" - } - ], - "grade_items": [ - { - "id": 1, - "iteminstance": 1, - "itemmodule": "quiz", - "grademin": 0, - "grademax": 100, - "gradepass": 50 - } - ], - "question_attempts": [ - { - "id": 1, - "questionusageid": 1, - "questionid": 1, - "responsesummary": "answer 1", - "rightanswer": "answer 1" - } - ], - "question": [ - { - "id": 1, - "qtype": "multichoice", - "questiontext": "test_question" - } - ], - "question_answers": [ - { - "id": 1, - "fraction": 1.000, - "answer": "answer 1", - "question": 1 - }, - { - "id": 2, - "fraction": 1.000, - "answer": "answer 2", - "question": 1 - }, - { - "id": 3, - "fraction": 1.000, - "answer": "answer 3", - "question": 1 - } - ], - "grade_grades": [ - { - "itemid": 1, - "userid": 1, - "rawgrade": 50 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "quiz" + } + ], + "quiz_attempts": [ + { + "id": 1, + "quiz": 1, + "uniqueid": 1, + "sumgrades": 50, + "state": "finished", + "timefinish": 1, + "timestart": 0 + } + ], + "question_usages": [ + { + "id": 1 + } + ], + "quiz": [ + { + "id": 1, + "name": "test_quiz_name" + } + ], + "grade_items": [ + { + "id": 1, + "iteminstance": 1, + "itemmodule": "quiz", + "grademin": 0, + "grademax": 100, + "gradepass": 50 + } + ], + "question_attempts": [ + { + "id": 1, + "questionusageid": 1, + "questionid": 1, + "responsesummary": "answer 1", + "rightanswer": "answer 1" + } + ], + "question": [ + { + "id": 1, + "qtype": "multichoice", + "questiontext": "test_question" + } + ], + "question_answers": [ + { + "id": 1, + "fraction": 1.000, + "answer": "answer 1", + "question": 1 + }, + { + "id": 2, + "fraction": 1.000, + "answer": "answer 2", + "question": 1 + }, + { + "id": 3, + "fraction": 1.000, + "answer": "answer 3", + "question": 1 + } + ], + "grade_grades": [ + { + "itemid": 1, + "userid": 1, + "rawgrade": 50 + } + ] +} diff --git a/tests/mod_quiz/attempt_submitted/multichoice/event.json b/tests/mod_quiz/attempt_submitted/multichoice/event.json index 0f8370b23..87f94acf8 100644 --- a/tests/mod_quiz/attempt_submitted/multichoice/event.json +++ b/tests/mod_quiz/attempt_submitted/multichoice/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "attempt", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_quiz\\event\\attempt_submitted" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "attempt", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_quiz\\event\\attempt_submitted" +} diff --git a/tests/mod_quiz/attempt_submitted/multichoice/statements.json b/tests/mod_quiz/attempt_submitted/multichoice/statements.json index c24050527..eab93658c 100644 --- a/tests/mod_quiz/attempt_submitted/multichoice/statements.json +++ b/tests/mod_quiz/attempt_submitted/multichoice/statements.json @@ -1,187 +1,187 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/completed", + "display": { + "en": "completed" + } + }, + "object": { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } + } + }, + "result": { + "score": { + "raw": 50, + "min": 0, + "max": 100, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "duration": "PT1S" + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "other": [ + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/completed", - "display": { - "en": "completed" + } + ], + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/quiz/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "score": { - "raw": 50, - "min": 0, - "max": 100, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "duration": "PT1S" - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "other": [ - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } + } + }, + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } }, - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } + "verb": { + "id": "http://adlnet.gov/expapi/verbs/answered", + "display": { + "en": "answered" + } + }, + "object": { + "id": "http://www.example.org/question/question.php?cmid=1&id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/cmi.interaction", + "name": { + "en": "test_question" }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/answered", - "display": { - "en": "answered" + "interactionType": "choice" + } + }, + "result": { + "response": "answer 1", + "success": true, + "completion": true, + "extensions": { + "http://learninglocker.net/xapi/cmi/choice/response": "answer 1" + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/question/question.php?cmid=1&id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/cmi.interaction", - "name": { - "en": "test_question" - }, - "interactionType": "choice" + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "response": "answer 1", - "success": true, - "completion": true, - "extensions": { - "http://learninglocker.net/xapi/cmi/choice/response": "answer 1" + }, + { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/view.php?id=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + }, + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - } + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } + } + } + ] + } } + } ] diff --git a/tests/mod_quiz/attempt_submitted/multichoice_withchoices/data.json b/tests/mod_quiz/attempt_submitted/multichoice_withchoices/data.json index 240d5c12c..c0fcce801 100644 --- a/tests/mod_quiz/attempt_submitted/multichoice_withchoices/data.json +++ b/tests/mod_quiz/attempt_submitted/multichoice_withchoices/data.json @@ -1,94 +1,93 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "quiz" - } - ], - "quiz_attempts": [ - { - "id": 1, - "quiz": 1, - "uniqueid": 1, - "sumgrades": 50, - "state": "finished", - "timefinish": 1, - "timestart": 0 - } - ], - "question_usages": [ - { - "id": 1 - - } - ], - "quiz": [ - { - "id": 1, - "name": "test_quiz_name" - } - ], - "grade_items": [ - { - "id": 1, - "iteminstance": 1, - "itemmodule": "quiz", - "grademin": 0, - "grademax": 100, - "gradepass": 50 - } - ], - "question_attempts": [ - { - "id": 1, - "questionusageid": 1, - "questionid": 1, - "responsesummary": "answer 1", - "rightanswer": "answer 1" - } - ], - "question": [ - { - "id": 1, - "qtype": "multichoice", - "questiontext": "test_question" - } - ], - "question_answers": [ - { - "id": 1, - "fraction": 1.000, - "answer": "answer 1", - "question": 1 - } - ], - "grade_grades": [ - { - "itemid": 1, - "userid": 1, - "rawgrade": 50 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "quiz" + } + ], + "quiz_attempts": [ + { + "id": 1, + "quiz": 1, + "uniqueid": 1, + "sumgrades": 50, + "state": "finished", + "timefinish": 1, + "timestart": 0 + } + ], + "question_usages": [ + { + "id": 1 + } + ], + "quiz": [ + { + "id": 1, + "name": "test_quiz_name" + } + ], + "grade_items": [ + { + "id": 1, + "iteminstance": 1, + "itemmodule": "quiz", + "grademin": 0, + "grademax": 100, + "gradepass": 50 + } + ], + "question_attempts": [ + { + "id": 1, + "questionusageid": 1, + "questionid": 1, + "responsesummary": "answer 1", + "rightanswer": "answer 1" + } + ], + "question": [ + { + "id": 1, + "qtype": "multichoice", + "questiontext": "test_question" + } + ], + "question_answers": [ + { + "id": 1, + "fraction": 1.000, + "answer": "answer 1", + "question": 1 + } + ], + "grade_grades": [ + { + "itemid": 1, + "userid": 1, + "rawgrade": 50 + } + ] +} diff --git a/tests/mod_quiz/attempt_submitted/multichoice_withchoices/event.json b/tests/mod_quiz/attempt_submitted/multichoice_withchoices/event.json index 0f8370b23..87f94acf8 100644 --- a/tests/mod_quiz/attempt_submitted/multichoice_withchoices/event.json +++ b/tests/mod_quiz/attempt_submitted/multichoice_withchoices/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "attempt", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_quiz\\event\\attempt_submitted" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "attempt", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_quiz\\event\\attempt_submitted" +} diff --git a/tests/mod_quiz/attempt_submitted/multichoice_withchoices/statements.json b/tests/mod_quiz/attempt_submitted/multichoice_withchoices/statements.json index 7144c8832..4fbde9d65 100644 --- a/tests/mod_quiz/attempt_submitted/multichoice_withchoices/statements.json +++ b/tests/mod_quiz/attempt_submitted/multichoice_withchoices/statements.json @@ -1,198 +1,198 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/completed", + "display": { + "en": "completed" + } + }, + "object": { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } + } + }, + "result": { + "score": { + "raw": 50, + "min": 0, + "max": 100, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "duration": "PT1S" + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "other": [ + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/completed", - "display": { - "en": "completed" + } + ], + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/quiz/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } + } + } + ] + } + } + }, + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/answered", + "display": { + "en": "answered" + } + }, + "object": { + "id": "http://www.example.org/question/question.php?cmid=1&id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/cmi.interaction", + "name": { + "en": "test_question" }, - "result": { - "score": { - "raw": 50, - "min": 0, - "max": 100, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "duration": "PT1S" - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "other": [ - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + "interactionType": "choice", + "correctResponsesPattern": [ + "answer 1" + ], + "choices": [ + { + "id": "1", + "description": { + "en": "answer 1" } - } + } + ] + } + }, + "result": { + "response": "answer 1", + "success": true, + "completion": true, + "extensions": { + "http://learninglocker.net/xapi/cmi/choice/response": "answer 1" + } }, - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/answered", - "display": { - "en": "answered" + }, + { + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/question/question.php?cmid=1&id=1", + }, + { + "id": "http://www.example.org/mod/quiz/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/cmi.interaction", - "name": { - "en": "test_question" - }, - "interactionType": "choice", - "correctResponsesPattern": [ - "answer 1" - ], - "choices": [ - { - "id": "1", - "description": { - "en": "answer 1" - } - } - ] + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } } - }, - "result": { - "response": "answer 1", - "success": true, - "completion": true, - "extensions": { - "http://learninglocker.net/xapi/cmi/choice/response": "answer 1" + }, + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/view.php?id=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_quiz/attempt_submitted/multichoiceset/data.json b/tests/mod_quiz/attempt_submitted/multichoiceset/data.json index 8163d5909..1a6d8fc53 100644 --- a/tests/mod_quiz/attempt_submitted/multichoiceset/data.json +++ b/tests/mod_quiz/attempt_submitted/multichoiceset/data.json @@ -1,106 +1,105 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "quiz" - } - ], - "quiz_attempts": [ - { - "id": 1, - "quiz": 1, - "uniqueid": 1, - "sumgrades": 50, - "state": "finished", - "timefinish": 1, - "timestart": 0 - } - ], - "question_usages": [ - { - "id": 1 - - } - ], - "quiz": [ - { - "id": 1, - "name": "test_quiz_name" - } - ], - "grade_items": [ - { - "id": 1, - "iteminstance": 1, - "itemmodule": "quiz", - "grademin": 0, - "grademax": 100, - "gradepass": 50 - } - ], - "question_attempts": [ - { - "id": 1, - "questionusageid": 1, - "questionid": 1, - "responsesummary": "answer 1; answer 2", - "rightanswer": "answer 1; answer 2" - } - ], - "question": [ - { - "id": 1, - "qtype": "multichoiceset", - "questiontext": "test_question" - } - ], - "question_answers": [ - { - "id": 1, - "fraction": 1.000, - "answer": "answer 1", - "question": 1 - }, - { - "id": 2, - "fraction": 1.000, - "answer": "answer 2", - "question": 1 - }, - { - "id": 3, - "fraction": 1.000, - "answer": "answer 3", - "question": 1 - } - ], - "grade_grades": [ - { - "itemid": 1, - "userid": 1, - "rawgrade": 50 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "quiz" + } + ], + "quiz_attempts": [ + { + "id": 1, + "quiz": 1, + "uniqueid": 1, + "sumgrades": 50, + "state": "finished", + "timefinish": 1, + "timestart": 0 + } + ], + "question_usages": [ + { + "id": 1 + } + ], + "quiz": [ + { + "id": 1, + "name": "test_quiz_name" + } + ], + "grade_items": [ + { + "id": 1, + "iteminstance": 1, + "itemmodule": "quiz", + "grademin": 0, + "grademax": 100, + "gradepass": 50 + } + ], + "question_attempts": [ + { + "id": 1, + "questionusageid": 1, + "questionid": 1, + "responsesummary": "answer 1; answer 2", + "rightanswer": "answer 1; answer 2" + } + ], + "question": [ + { + "id": 1, + "qtype": "multichoiceset", + "questiontext": "test_question" + } + ], + "question_answers": [ + { + "id": 1, + "fraction": 1.000, + "answer": "answer 1", + "question": 1 + }, + { + "id": 2, + "fraction": 1.000, + "answer": "answer 2", + "question": 1 + }, + { + "id": 3, + "fraction": 1.000, + "answer": "answer 3", + "question": 1 + } + ], + "grade_grades": [ + { + "itemid": 1, + "userid": 1, + "rawgrade": 50 + } + ] +} diff --git a/tests/mod_quiz/attempt_submitted/multichoiceset/event.json b/tests/mod_quiz/attempt_submitted/multichoiceset/event.json index 0f8370b23..87f94acf8 100644 --- a/tests/mod_quiz/attempt_submitted/multichoiceset/event.json +++ b/tests/mod_quiz/attempt_submitted/multichoiceset/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "attempt", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_quiz\\event\\attempt_submitted" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "attempt", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_quiz\\event\\attempt_submitted" +} diff --git a/tests/mod_quiz/attempt_submitted/multichoiceset/statements.json b/tests/mod_quiz/attempt_submitted/multichoiceset/statements.json index 4a494352f..2f9f13093 100644 --- a/tests/mod_quiz/attempt_submitted/multichoiceset/statements.json +++ b/tests/mod_quiz/attempt_submitted/multichoiceset/statements.json @@ -1,187 +1,187 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/completed", + "display": { + "en": "completed" + } + }, + "object": { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } + } + }, + "result": { + "score": { + "raw": 50, + "min": 0, + "max": 100, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "duration": "PT1S" + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "other": [ + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/completed", - "display": { - "en": "completed" + } + ], + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/quiz/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "score": { - "raw": 50, - "min": 0, - "max": 100, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "duration": "PT1S" - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "other": [ - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } + } + }, + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } }, - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } + "verb": { + "id": "http://adlnet.gov/expapi/verbs/answered", + "display": { + "en": "answered" + } + }, + "object": { + "id": "http://www.example.org/question/question.php?cmid=1&id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/cmi.interaction", + "name": { + "en": "test_question" }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/answered", - "display": { - "en": "answered" + "interactionType": "choice" + } + }, + "result": { + "response": "answer 1[,]answer 2", + "success": true, + "completion": true, + "extensions": { + "http://learninglocker.net/xapi/cmi/choice/response": "answer 1; answer 2" + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/question/question.php?cmid=1&id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/cmi.interaction", - "name": { - "en": "test_question" - }, - "interactionType": "choice" + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "response": "answer 1[,]answer 2", - "success": true, - "completion": true, - "extensions": { - "http://learninglocker.net/xapi/cmi/choice/response": "answer 1; answer 2" + }, + { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/view.php?id=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + }, + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - } + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } + } + } + ] + } } + } ] diff --git a/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/data.json b/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/data.json index 8163d5909..1a6d8fc53 100644 --- a/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/data.json +++ b/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/data.json @@ -1,106 +1,105 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "quiz" - } - ], - "quiz_attempts": [ - { - "id": 1, - "quiz": 1, - "uniqueid": 1, - "sumgrades": 50, - "state": "finished", - "timefinish": 1, - "timestart": 0 - } - ], - "question_usages": [ - { - "id": 1 - - } - ], - "quiz": [ - { - "id": 1, - "name": "test_quiz_name" - } - ], - "grade_items": [ - { - "id": 1, - "iteminstance": 1, - "itemmodule": "quiz", - "grademin": 0, - "grademax": 100, - "gradepass": 50 - } - ], - "question_attempts": [ - { - "id": 1, - "questionusageid": 1, - "questionid": 1, - "responsesummary": "answer 1; answer 2", - "rightanswer": "answer 1; answer 2" - } - ], - "question": [ - { - "id": 1, - "qtype": "multichoiceset", - "questiontext": "test_question" - } - ], - "question_answers": [ - { - "id": 1, - "fraction": 1.000, - "answer": "answer 1", - "question": 1 - }, - { - "id": 2, - "fraction": 1.000, - "answer": "answer 2", - "question": 1 - }, - { - "id": 3, - "fraction": 1.000, - "answer": "answer 3", - "question": 1 - } - ], - "grade_grades": [ - { - "itemid": 1, - "userid": 1, - "rawgrade": 50 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "quiz" + } + ], + "quiz_attempts": [ + { + "id": 1, + "quiz": 1, + "uniqueid": 1, + "sumgrades": 50, + "state": "finished", + "timefinish": 1, + "timestart": 0 + } + ], + "question_usages": [ + { + "id": 1 + } + ], + "quiz": [ + { + "id": 1, + "name": "test_quiz_name" + } + ], + "grade_items": [ + { + "id": 1, + "iteminstance": 1, + "itemmodule": "quiz", + "grademin": 0, + "grademax": 100, + "gradepass": 50 + } + ], + "question_attempts": [ + { + "id": 1, + "questionusageid": 1, + "questionid": 1, + "responsesummary": "answer 1; answer 2", + "rightanswer": "answer 1; answer 2" + } + ], + "question": [ + { + "id": 1, + "qtype": "multichoiceset", + "questiontext": "test_question" + } + ], + "question_answers": [ + { + "id": 1, + "fraction": 1.000, + "answer": "answer 1", + "question": 1 + }, + { + "id": 2, + "fraction": 1.000, + "answer": "answer 2", + "question": 1 + }, + { + "id": 3, + "fraction": 1.000, + "answer": "answer 3", + "question": 1 + } + ], + "grade_grades": [ + { + "itemid": 1, + "userid": 1, + "rawgrade": 50 + } + ] +} diff --git a/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/event.json b/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/event.json index 0f8370b23..87f94acf8 100644 --- a/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/event.json +++ b/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "attempt", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_quiz\\event\\attempt_submitted" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "attempt", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_quiz\\event\\attempt_submitted" +} diff --git a/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/statements.json b/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/statements.json index 8655d889c..cfe93600b 100644 --- a/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/statements.json +++ b/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/statements.json @@ -1,210 +1,210 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/completed", + "display": { + "en": "completed" + } + }, + "object": { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } + } + }, + "result": { + "score": { + "raw": 50, + "min": 0, + "max": 100, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "duration": "PT1S" + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "other": [ + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/completed", - "display": { - "en": "completed" + } + ], + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/quiz/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } + } + } + ] + } + } + }, + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/answered", + "display": { + "en": "answered" + } + }, + "object": { + "id": "http://www.example.org/question/question.php?cmid=1&id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/cmi.interaction", + "name": { + "en": "test_question" }, - "result": { - "score": { - "raw": 50, - "min": 0, - "max": 100, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "duration": "PT1S" - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "other": [ - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + "interactionType": "choice", + "correctResponsesPattern": [ + "answer 1[,]answer 2" + ], + "choices": [ + { + "id": "1", + "description": { + "en": "answer 1" } - } + }, + { + "id": "2", + "description": { + "en": "answer 2" + } + }, + { + "id": "3", + "description": { + "en": "answer 3" + } + } + ] + } }, - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + "result": { + "response": "answer 1[,]answer 2", + "success": true, + "completion": true, + "extensions": { + "http://learninglocker.net/xapi/cmi/choice/response": "answer 1; answer 2" + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/answered", - "display": { - "en": "answered" + }, + { + "id": "http://www.example.org/course/view.php?id=1", + "definition": { + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/question/question.php?cmid=1&id=1", + }, + { + "id": "http://www.example.org/mod/quiz/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/cmi.interaction", - "name": { - "en": "test_question" - }, - "interactionType": "choice", - "correctResponsesPattern": [ - "answer 1[,]answer 2" - ], - "choices": [ - { - "id": "1", - "description": { - "en": "answer 1" - } - }, - { - "id": "2", - "description": { - "en": "answer 2" - } - }, - { - "id": "3", - "description": { - "en": "answer 3" - } - } - ] + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } } - }, - "result": { - "response": "answer 1[,]answer 2", - "success": true, - "completion": true, - "extensions": { - "http://learninglocker.net/xapi/cmi/choice/response": "answer 1; answer 2" + }, + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/view.php?id=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_quiz/attempt_submitted/no_questions/data.json b/tests/mod_quiz/attempt_submitted/no_questions/data.json index b09d10c98..765108d96 100644 --- a/tests/mod_quiz/attempt_submitted/no_questions/data.json +++ b/tests/mod_quiz/attempt_submitted/no_questions/data.json @@ -1,72 +1,71 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "quiz" - } - ], - "quiz_attempts": [ - { - "id": 1, - "quiz": 1, - "uniqueid": 1, - "sumgrades": 50, - "state": "finished", - "timefinish": 1, - "timestart": 0 - } - ], - "question_usages": [ - { - "id": 1 - - } - ], - "quiz": [ - { - "id": 1, - "name": "test_quiz_name" - } - ], - "grade_items": [ - { - "id": 1, - "iteminstance": 1, - "itemmodule": "quiz", - "grademin": 0, - "grademax": 100, - "gradepass": 50 - } - ], - "question_attempts": [], - "question": [], - "grade_grades": [ - { - "itemid": 1, - "userid": 1, - "rawgrade": 50 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "quiz" + } + ], + "quiz_attempts": [ + { + "id": 1, + "quiz": 1, + "uniqueid": 1, + "sumgrades": 50, + "state": "finished", + "timefinish": 1, + "timestart": 0 + } + ], + "question_usages": [ + { + "id": 1 + } + ], + "quiz": [ + { + "id": 1, + "name": "test_quiz_name" + } + ], + "grade_items": [ + { + "id": 1, + "iteminstance": 1, + "itemmodule": "quiz", + "grademin": 0, + "grademax": 100, + "gradepass": 50 + } + ], + "question_attempts": [], + "question": [], + "grade_grades": [ + { + "itemid": 1, + "userid": 1, + "rawgrade": 50 + } + ] +} diff --git a/tests/mod_quiz/attempt_submitted/no_questions/event.json b/tests/mod_quiz/attempt_submitted/no_questions/event.json index 0f8370b23..87f94acf8 100644 --- a/tests/mod_quiz/attempt_submitted/no_questions/event.json +++ b/tests/mod_quiz/attempt_submitted/no_questions/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "attempt", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_quiz\\event\\attempt_submitted" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "attempt", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_quiz\\event\\attempt_submitted" +} diff --git a/tests/mod_quiz/attempt_submitted/no_questions/statements.json b/tests/mod_quiz/attempt_submitted/no_questions/statements.json index 4df05547a..c3a91bd08 100644 --- a/tests/mod_quiz/attempt_submitted/no_questions/statements.json +++ b/tests/mod_quiz/attempt_submitted/no_questions/statements.json @@ -1,92 +1,92 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/completed", + "display": { + "en": "completed" + } + }, + "object": { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } + } + }, + "result": { + "score": { + "raw": 50, + "min": 0, + "max": 100, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "duration": "PT1S" + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "other": [ + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/completed", - "display": { - "en": "completed" + } + ], + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/quiz/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "score": { - "raw": 50, - "min": 0, - "max": 100, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "duration": "PT1S" - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "other": [ - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } } + } ] diff --git a/tests/mod_quiz/attempt_submitted/numerical/data.json b/tests/mod_quiz/attempt_submitted/numerical/data.json index 08d466eac..5d8c4a325 100644 --- a/tests/mod_quiz/attempt_submitted/numerical/data.json +++ b/tests/mod_quiz/attempt_submitted/numerical/data.json @@ -1,86 +1,85 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "quiz" - } - ], - "quiz_attempts": [ - { - "id": 1, - "quiz": 1, - "uniqueid": 1, - "sumgrades": 50, - "state": "finished", - "timefinish": 1, - "timestart": 0 - } - ], - "question_usages": [ - { - "id": 1 - - } - ], - "quiz": [ - { - "id": 1, - "name": "test_quiz_name" - } - ], - "grade_items": [ - { - "id": 1, - "iteminstance": 1, - "itemmodule": "quiz", - "grademin": 0, - "grademax": 100, - "gradepass": 50 - } - ], - "question_attempts": [ - { - "id": 1, - "questionusageid": 1, - "questionid": 1, - "responsesummary": "1", - "rightanswer": "1" - } - ], - "question": [ - { - "id": 1, - "qtype": "numerical", - "questiontext": "test_question" - } - ], - "grade_grades": [ - { - "itemid": 1, - "userid": 1, - "rawgrade": 50 - } - ] -} \ No newline at end of file + "user": [ + { + "id": 1, + "firstname": "test_fullname", + "email": "test@test.com" + } + ], + "course": [ + { + "id": 1, + "fullname": "test_name", + "lang": "en" + } + ], + "course_modules": [ + { + "id": 1, + "course": 1, + "module": 1, + "instance": 1 + } + ], + "modules": [ + { + "id": 1, + "name": "quiz" + } + ], + "quiz_attempts": [ + { + "id": 1, + "quiz": 1, + "uniqueid": 1, + "sumgrades": 50, + "state": "finished", + "timefinish": 1, + "timestart": 0 + } + ], + "question_usages": [ + { + "id": 1 + } + ], + "quiz": [ + { + "id": 1, + "name": "test_quiz_name" + } + ], + "grade_items": [ + { + "id": 1, + "iteminstance": 1, + "itemmodule": "quiz", + "grademin": 0, + "grademax": 100, + "gradepass": 50 + } + ], + "question_attempts": [ + { + "id": 1, + "questionusageid": 1, + "questionid": 1, + "responsesummary": "1", + "rightanswer": "1" + } + ], + "question": [ + { + "id": 1, + "qtype": "numerical", + "questiontext": "test_question" + } + ], + "grade_grades": [ + { + "itemid": 1, + "userid": 1, + "rawgrade": 50 + } + ] +} diff --git a/tests/mod_quiz/attempt_submitted/numerical/event.json b/tests/mod_quiz/attempt_submitted/numerical/event.json index 0f8370b23..87f94acf8 100644 --- a/tests/mod_quiz/attempt_submitted/numerical/event.json +++ b/tests/mod_quiz/attempt_submitted/numerical/event.json @@ -1,10 +1,10 @@ { - "id": 1, - "relateduserid": 1, - "courseid": 1, - "timecreated": 1433946701, - "objecttable": "attempt", - "objectid": 1, - "contextinstanceid": 1, - "eventname": "\\mod_quiz\\event\\attempt_submitted" -} \ No newline at end of file + "id": 1, + "relateduserid": 1, + "courseid": 1, + "timecreated": 1433946701, + "objecttable": "attempt", + "objectid": 1, + "contextinstanceid": 1, + "eventname": "\\mod_quiz\\event\\attempt_submitted" +} diff --git a/tests/mod_quiz/attempt_submitted/numerical/statements.json b/tests/mod_quiz/attempt_submitted/numerical/statements.json index 5e1d1f8bd..fb300a34b 100644 --- a/tests/mod_quiz/attempt_submitted/numerical/statements.json +++ b/tests/mod_quiz/attempt_submitted/numerical/statements.json @@ -1,187 +1,187 @@ [ - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } + }, + "verb": { + "id": "http://adlnet.gov/expapi/verbs/completed", + "display": { + "en": "completed" + } + }, + "object": { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } + } + }, + "result": { + "score": { + "raw": 50, + "min": 0, + "max": 100, + "scaled": 0.5 + }, + "completion": true, + "success": true, + "duration": "PT1S" + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "other": [ + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/completed", - "display": { - "en": "completed" + } + ], + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/mod/quiz/view.php?id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "score": { - "raw": 50, - "min": 0, - "max": 100, - "scaled": 0.5 - }, - "completion": true, - "success": true, - "duration": "PT1S" - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "other": [ - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } } - } + } + ] + } + } + }, + { + "actor": { + "name": "test_fullname", + "account": { + "homePage": "http://www.example.org", + "name": "1" + } }, - { - "actor": { - "name": "test_fullname", - "account": { - "homePage": "http://www.example.org", - "name": "1" - } + "verb": { + "id": "http://adlnet.gov/expapi/verbs/answered", + "display": { + "en": "answered" + } + }, + "object": { + "id": "http://www.example.org/question/question.php?cmid=1&id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/cmi.interaction", + "name": { + "en": "test_question" }, - "verb": { - "id": "http://adlnet.gov/expapi/verbs/answered", - "display": { - "en": "answered" + "interactionType": "numeric" + } + }, + "result": { + "response": "1", + "completion": true, + "success": true, + "extensions": { + "http://learninglocker.net/xapi/cmi/numeric/response": 1 + } + }, + "context": { + "language": "en", + "extensions": { + "http://lrs.learninglocker.net/define/extensions/info": { + "http://moodle.org": "1.0.0", + "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", + "event_name": "\\mod_quiz\\event\\attempt_submitted", + "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" + } + }, + "contextActivities": { + "grouping": [ + { + "id": "http://www.example.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/lms", + "name": { + "en": "test_name" + } } - }, - "object": { - "id": "http://www.example.org/question/question.php?cmid=1&id=1", + }, + { + "id": "http://www.example.org/course/view.php?id=1", "definition": { - "type": "http://adlnet.gov/expapi/activities/cmi.interaction", - "name": { - "en": "test_question" - }, - "interactionType": "numeric" + "type": "https://w3id.org/xapi/cmi5/activitytype/course", + "name": { + "en": "test_name" + } } - }, - "result": { - "response": "1", - "completion": true, - "success": true, - "extensions": { - "http://learninglocker.net/xapi/cmi/numeric/response": 1 + }, + { + "id": "http://www.example.org/mod/quiz/view.php?id=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/assessment", + "name": { + "en": "test_quiz_name" + } } - }, - "context": { - "language": "en", - "extensions": { - "http://lrs.learninglocker.net/define/extensions/info": { - "http://moodle.org": "1.0.0", - "https://github.com/xAPI-vle/moodle-logstore_xapi": "0.0.0-development", - "event_name": "\\mod_quiz\\event\\attempt_submitted", - "event_function": "\\src\\transformer\\events\\mod_quiz\\attempt_submitted\\handler" - } - }, - "contextActivities": { - "grouping": [ - { - "id": "http://www.example.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/course/view.php?id=1", - "definition": { - "type": "https://w3id.org/xapi/cmi5/activitytype/course", - "name": { - "en": "test_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/view.php?id=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/assessment", - "name": { - "en": "test_quiz_name" - } - } - }, - { - "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", - "definition": { - "type": "http://adlnet.gov/expapi/activities/attempt", - "name": { - "en": "Attempt" - } - } - } - ], - "category": [ - { - "id": "http://moodle.org", - "definition": { - "type": "http://id.tincanapi.com/activitytype/source", - "name": { - "en": "Moodle" - } - } - } - ] + }, + { + "id": "http://www.example.org/mod/quiz/attempt.php?attempt=1&cmid=1", + "definition": { + "type": "http://adlnet.gov/expapi/activities/attempt", + "name": { + "en": "Attempt" + } } - } + } + ], + "category": [ + { + "id": "http://moodle.org", + "definition": { + "type": "http://id.tincanapi.com/activitytype/source", + "name": { + "en": "Moodle" + } + } + } + ] + } } + } ] diff --git a/tests/mod_quiz/attempt_submitted/randomsamatch/data.json b/tests/mod_quiz/attempt_submitted/randomsamatch/data.json index d61cb4aad..900f3768e 100644 --- a/tests/mod_quiz/attempt_submitted/randomsamatch/data.json +++ b/tests/mod_quiz/attempt_submitted/randomsamatch/data.json @@ -1,86 +1,85 @@ { - "user": [ - { - "id": 1, - "firstname": "test_fullname", - "email": "test@test.com" - } - ], - "course": [ - { - "id": 1, - "fullname": "test_name", - "lang": "en" - } - ], - "course_modules": [ - { - "id": 1, - "course": 1, - "module": 1, - "instance": 1 - } - ], - "modules": [ - { - "id": 1, - "name": "quiz" - } - ], - "quiz_attempts": [ - { - "id": 1, - "quiz": 1, - "uniqueid": 1, - "sumgrades": 50, - "state": "finished", - "timefinish": 1, - "timestart": 0 - } - ], - "question_usages": [ - { - "id": 1 - - } - ], - "quiz": [ - { - "id": 1, - "name": "test_quiz_name" - } - ], - "grade_items": [ - { - "id": 1, - "iteminstance": 1, - "itemmodule": "quiz", - "grademin": 0, - "grademax": 100, - "gradepass": 50 - } - ], - "question_attempts": [ - { - "id": 1, - "questionusageid": 1, - "questionid": 1, - "rightanswer": "Example short answer question\n -> orange; Testing testing\n -> Purple", - "responsesummary": "Example short answer question\n -> orange; Testing testing\n -> Purple" - } - ], - "question": [ - { - "id": 1, - "qtype": "randomsamatch", - "questiontext": "Example Random short-answer matching question
Example Random short-answer matching question