-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
14 changed files
with
497 additions
and
9 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
55 changes: 55 additions & 0 deletions
55
tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/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,55 @@ | ||
{ | ||
"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 | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/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": "grade", | ||
"objectid": 1, | ||
"contextinstanceid": 1, | ||
"eventname": "\\mod_assign\\event\\submission_graded" | ||
} |
89 changes: 89 additions & 0 deletions
89
tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/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,89 @@ | ||
[ | ||
{ | ||
"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 | ||
}, | ||
"timestamp": "2015-06-10T15:31:41+01:00", | ||
"context": { | ||
"instructor": { | ||
"name": "test_fullname", | ||
"account": { | ||
"homePage": "http:\/\/www.example.org", | ||
"name": "1" | ||
} | ||
}, | ||
"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_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": "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" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] |
24 changes: 24 additions & 0 deletions
24
tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/test.php
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,24 @@ | ||
<?php | ||
// This file is part of Moodle - http://moodle.org/ | ||
// | ||
// Moodle is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Moodle is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
namespace tests\mod_assign\assignment_graded\existing_assignment_graded_nocomment; | ||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
class test extends \tests\xapi_test_case { | ||
protected function get_test_dir() { | ||
return __DIR__; | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
tests/mod_quiz/attempt_submitted/essay_null_response/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,78 @@ | ||
{ | ||
"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": null | ||
} | ||
], | ||
"question": [ | ||
{ | ||
"id": 1, | ||
"qtype": "essay", | ||
"questiontext": "test_question" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/mod_quiz/attempt_submitted/essay_null_response/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, | ||
"relateduserid": 1, | ||
"courseid": 1, | ||
"timecreated": 1433946701, | ||
"objecttable": "attempt", | ||
"objectid": 1, | ||
"contextinstanceid": 1, | ||
"eventname": "\\mod_quiz\\event\\attempt_submitted" | ||
} |
Oops, something went wrong.