(no description)
File Size: | 236 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
lineitem_test:: (6 methods):
test_execute_put_nosubreview()
test_execute_put_withsubreview()
test_execute_put_addsubreview()
create_graded_lti()
create_type()
set_server_for_put()
Class: lineitem_test - X-Ref
Unit tests for lti lineitem.test_execute_put_nosubreview() X-Ref |
test_execute_put_withsubreview() X-Ref |
test_execute_put_addsubreview() X-Ref |
create_graded_lti(int $typeid, object $course, ?string $resourceid, ?string $tag,?string $subreviewurl = null, ?string $subreviewparams = null) X-Ref |
Inserts a graded lti instance, which should create a grade_item and gradebookservices record. param: int $typeid Type ID of the LTI Tool. param: object $course course where to add the lti instance. param: string|null $resourceid resource id param: string|null $tag tag param: string|null $subreviewurl submission review url param: string|null $subreviewparams submission review custom params return: object lti instance created |
create_type() X-Ref |
Creates a new LTI Tool Type. |
set_server_for_put(object $course, int $typeid, object $lineitem) X-Ref |
Sets the server info and get to be configured for a PUT operation, including having a proper auth token attached. param: object $course course where to add the lti instance. param: int $typeid param: object $lineitem |