forked from xAPI-vle/moodle-logstore_xapi
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing test files for mod_facetoface
- Loading branch information
1 parent
5cba67c
commit 1cca805
Showing
12 changed files
with
515 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
tests/mod_facetoface/cancel_booking/existing_booking_cancelled/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"user": [ | ||
{ | ||
"id": 1, | ||
"firstname": "test_fullname", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"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" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/mod_facetoface/cancel_booking/existing_booking_cancelled/event.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"id": 1, | ||
"userid": 1, | ||
"courseid": 1, | ||
"timecreated": 1433946701, | ||
"objecttable": "facetoface", | ||
"objectid": 1, | ||
"contextinstanceid": 1, | ||
"eventname": "\\mod_facetoface\\event\\cancel_booking" | ||
} |
72 changes: 72 additions & 0 deletions
72
tests/mod_facetoface/cancel_booking/existing_booking_cancelled/statements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[ | ||
{ | ||
"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" | ||
} | ||
} | ||
}, | ||
"timestamp": "2015-06-10T22:31:41+08:00", | ||
"context": { | ||
"platform": "Moodle", | ||
"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": "http:\/\/id.tincanapi.com\/activitytype\/lms\/course", | ||
"name": { | ||
"en": "test_name" | ||
} | ||
} | ||
} | ||
], | ||
"category": [ | ||
{ | ||
"id": "http:\/\/moodle.org", | ||
"definition": { | ||
"type": "http:\/\/id.tincanapi.com\/activitytype\/source", | ||
"name": { | ||
"en": "Moodle" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] |
36 changes: 36 additions & 0 deletions
36
tests/mod_facetoface/course_module_viewed/existing_module/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"user": [ | ||
{ | ||
"id": 1, | ||
"firstname": "test_fullname", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"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" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
tests/mod_facetoface/course_module_viewed/existing_module/event.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id": 1, | ||
"userid": 1, | ||
"courseid": 1, | ||
"timecreated": 1433946701, | ||
"contextinstanceid": 1, | ||
"eventname": "\\mod_facetoface\\event\\course_module_viewed" | ||
} |
72 changes: 72 additions & 0 deletions
72
tests/mod_facetoface/course_module_viewed/existing_module/statements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[ | ||
{ | ||
"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\/facetoface\/view.php?id=1", | ||
"definition": { | ||
"type": "https:\/\/w3id.org\/xapi\/acrossx\/activities\/face-to-face-discussion", | ||
"name": { | ||
"en": "test_name" | ||
} | ||
} | ||
}, | ||
"timestamp": "2015-06-10T22:31:41+08:00", | ||
"context": { | ||
"platform": "Moodle", | ||
"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\\course_module_viewed", | ||
"event_function": "\\src\\transformer\\events\\mod_facetoface\\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": "http:\/\/id.tincanapi.com\/activitytype\/lms\/course", | ||
"name": { | ||
"en": "test_name" | ||
} | ||
} | ||
} | ||
], | ||
"category": [ | ||
{ | ||
"id": "http:\/\/moodle.org", | ||
"definition": { | ||
"type": "http:\/\/id.tincanapi.com\/activitytype\/source", | ||
"name": { | ||
"en": "Moodle" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] |
36 changes: 36 additions & 0 deletions
36
tests/mod_facetoface/signup_success/existing_signup_success/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"user": [ | ||
{ | ||
"id": 1, | ||
"firstname": "test_fullname", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"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" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/mod_facetoface/signup_success/existing_signup_success/event.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"id": 1, | ||
"userid": 1, | ||
"courseid": 1, | ||
"timecreated": 1433946701, | ||
"objecttable": "facetoface", | ||
"objectid": 1, | ||
"contextinstanceid": 1, | ||
"eventname": "\\mod_facetoface\\event\\signup_success" | ||
} |
72 changes: 72 additions & 0 deletions
72
tests/mod_facetoface/signup_success/existing_signup_success/statements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[ | ||
{ | ||
"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" | ||
} | ||
} | ||
}, | ||
"timestamp": "2015-06-10T22:31:41+08:00", | ||
"context": { | ||
"platform": "Moodle", | ||
"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": "http:\/\/id.tincanapi.com\/activitytype\/lms\/course", | ||
"name": { | ||
"en": "test_name" | ||
} | ||
} | ||
} | ||
], | ||
"category": [ | ||
{ | ||
"id": "http:\/\/moodle.org", | ||
"definition": { | ||
"type": "http:\/\/id.tincanapi.com\/activitytype\/source", | ||
"name": { | ||
"en": "Moodle" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.