From b3d6f596c57f8fc596c08d319814720f948ed556 Mon Sep 17 00:00:00 2001 From: Milton Reder Date: Wed, 16 Oct 2024 10:51:58 -0400 Subject: [PATCH] mod_bbb sections --- .../events/mod_bigbluebuttonbn/handler.php | 13 +++++------ .../activity_management_viewed/data.json | 22 ------------------- .../statements.json | 17 +++++++------- .../live_session/data.json | 22 ------------------- .../live_session/statements.json | 17 +++++++------- .../meeting_created/data.json | 22 ------------------- .../meeting_created/statements.json | 17 +++++++------- .../meeting_ended/data.json | 22 ------------------- .../meeting_ended/statements.json | 17 +++++++------- .../meeting_joined/data.json | 22 ------------------- .../meeting_joined/statements.json | 17 +++++++------- .../meeting_left/data.json | 22 ------------------- .../meeting_left/statements.json | 17 +++++++------- .../recording_deleted/data.json | 22 ------------------- .../recording_deleted/statements.json | 17 +++++++------- .../recording_edited/data.json | 22 ------------------- .../recording_edited/statements.json | 17 +++++++------- .../recording_imported/data.json | 22 ------------------- .../recording_imported/statements.json | 17 +++++++------- .../recording_protected/data.json | 22 ------------------- .../recording_protected/statements.json | 17 +++++++------- .../recording_published/data.json | 22 ------------------- .../recording_published/statements.json | 17 +++++++------- .../recording_unprotected/data.json | 22 ------------------- .../recording_unprotected/statements.json | 17 +++++++------- .../recording_unpublished/data.json | 22 ------------------- .../recording_unpublished/statements.json | 17 +++++++------- .../recording_viewed/data.json | 22 ------------------- .../recording_viewed/statements.json | 17 +++++++------- 29 files changed, 132 insertions(+), 427 deletions(-) diff --git a/src/transformer/events/mod_bigbluebuttonbn/handler.php b/src/transformer/events/mod_bigbluebuttonbn/handler.php index f70ef54b4..9829a646e 100644 --- a/src/transformer/events/mod_bigbluebuttonbn/handler.php +++ b/src/transformer/events/mod_bigbluebuttonbn/handler.php @@ -51,20 +51,19 @@ function create_statement(array $config, \stdClass $event, $evtid, $evtdispname 'object' => utils\get_activity\course_module( $config, $course, - $event->contextinstanceid, - 'http://adlnet.gov/expapi/activities/meeting' + $event->contextinstanceid ), 'context' => [ 'language' => $lang, 'extensions' => utils\extensions\base($config, $event, $course), 'contextActivities' => [ - 'grouping' => [ + 'parent' => utils\context_activities\get_parent( + $config, + $event->contextinstanceid + ), + 'category' => [ utils\get_activity\site($config), - utils\get_activity\course($config, $course), ], - 'category' => [ - utils\get_activity\source($config), - ] ], ] ]]; diff --git a/tests/mod_bigbluebuttonbn/activity_management_viewed/data.json b/tests/mod_bigbluebuttonbn/activity_management_viewed/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/activity_management_viewed/data.json +++ b/tests/mod_bigbluebuttonbn/activity_management_viewed/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/activity_management_viewed/statements.json b/tests/mod_bigbluebuttonbn/activity_management_viewed/statements.json index fb7a4ee42..f4ced7e60 100644 --- a/tests/mod_bigbluebuttonbn/activity_management_viewed/statements.json +++ b/tests/mod_bigbluebuttonbn/activity_management_viewed/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/live_session/data.json b/tests/mod_bigbluebuttonbn/live_session/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/live_session/data.json +++ b/tests/mod_bigbluebuttonbn/live_session/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/live_session/statements.json b/tests/mod_bigbluebuttonbn/live_session/statements.json index acd8afd89..29ddba868 100644 --- a/tests/mod_bigbluebuttonbn/live_session/statements.json +++ b/tests/mod_bigbluebuttonbn/live_session/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/meeting_created/data.json b/tests/mod_bigbluebuttonbn/meeting_created/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/meeting_created/data.json +++ b/tests/mod_bigbluebuttonbn/meeting_created/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/meeting_created/statements.json b/tests/mod_bigbluebuttonbn/meeting_created/statements.json index 3e0eb39fa..e3da70963 100644 --- a/tests/mod_bigbluebuttonbn/meeting_created/statements.json +++ b/tests/mod_bigbluebuttonbn/meeting_created/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/meeting_ended/data.json b/tests/mod_bigbluebuttonbn/meeting_ended/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/meeting_ended/data.json +++ b/tests/mod_bigbluebuttonbn/meeting_ended/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/meeting_ended/statements.json b/tests/mod_bigbluebuttonbn/meeting_ended/statements.json index a0df341dc..dd7dbe2c4 100644 --- a/tests/mod_bigbluebuttonbn/meeting_ended/statements.json +++ b/tests/mod_bigbluebuttonbn/meeting_ended/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/meeting_joined/data.json b/tests/mod_bigbluebuttonbn/meeting_joined/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/meeting_joined/data.json +++ b/tests/mod_bigbluebuttonbn/meeting_joined/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/meeting_joined/statements.json b/tests/mod_bigbluebuttonbn/meeting_joined/statements.json index 8245b3a16..514c318d9 100644 --- a/tests/mod_bigbluebuttonbn/meeting_joined/statements.json +++ b/tests/mod_bigbluebuttonbn/meeting_joined/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/meeting_left/data.json b/tests/mod_bigbluebuttonbn/meeting_left/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/meeting_left/data.json +++ b/tests/mod_bigbluebuttonbn/meeting_left/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/meeting_left/statements.json b/tests/mod_bigbluebuttonbn/meeting_left/statements.json index 4df7b5409..eed82767a 100644 --- a/tests/mod_bigbluebuttonbn/meeting_left/statements.json +++ b/tests/mod_bigbluebuttonbn/meeting_left/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/recording_deleted/data.json b/tests/mod_bigbluebuttonbn/recording_deleted/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/recording_deleted/data.json +++ b/tests/mod_bigbluebuttonbn/recording_deleted/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/recording_deleted/statements.json b/tests/mod_bigbluebuttonbn/recording_deleted/statements.json index bf421473e..5229ebcd7 100644 --- a/tests/mod_bigbluebuttonbn/recording_deleted/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_deleted/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/recording_edited/data.json b/tests/mod_bigbluebuttonbn/recording_edited/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/recording_edited/data.json +++ b/tests/mod_bigbluebuttonbn/recording_edited/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/recording_edited/statements.json b/tests/mod_bigbluebuttonbn/recording_edited/statements.json index bf421473e..5229ebcd7 100644 --- a/tests/mod_bigbluebuttonbn/recording_edited/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_edited/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/recording_imported/data.json b/tests/mod_bigbluebuttonbn/recording_imported/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/recording_imported/data.json +++ b/tests/mod_bigbluebuttonbn/recording_imported/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/recording_imported/statements.json b/tests/mod_bigbluebuttonbn/recording_imported/statements.json index 47162f8dd..407b8c5ed 100644 --- a/tests/mod_bigbluebuttonbn/recording_imported/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_imported/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/recording_protected/data.json b/tests/mod_bigbluebuttonbn/recording_protected/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/recording_protected/data.json +++ b/tests/mod_bigbluebuttonbn/recording_protected/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/recording_protected/statements.json b/tests/mod_bigbluebuttonbn/recording_protected/statements.json index 5ddfacf25..7a7a13787 100644 --- a/tests/mod_bigbluebuttonbn/recording_protected/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_protected/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/recording_published/data.json b/tests/mod_bigbluebuttonbn/recording_published/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/recording_published/data.json +++ b/tests/mod_bigbluebuttonbn/recording_published/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/recording_published/statements.json b/tests/mod_bigbluebuttonbn/recording_published/statements.json index 288d5cfb9..70541a975 100644 --- a/tests/mod_bigbluebuttonbn/recording_published/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_published/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/recording_unprotected/data.json b/tests/mod_bigbluebuttonbn/recording_unprotected/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/recording_unprotected/data.json +++ b/tests/mod_bigbluebuttonbn/recording_unprotected/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/recording_unprotected/statements.json b/tests/mod_bigbluebuttonbn/recording_unprotected/statements.json index 098cb1ac8..b9cf5bdda 100644 --- a/tests/mod_bigbluebuttonbn/recording_unprotected/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_unprotected/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/recording_unpublished/data.json b/tests/mod_bigbluebuttonbn/recording_unpublished/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/recording_unpublished/data.json +++ b/tests/mod_bigbluebuttonbn/recording_unpublished/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/recording_unpublished/statements.json b/tests/mod_bigbluebuttonbn/recording_unpublished/statements.json index 98ca5cbcf..fc9732ec4 100644 --- a/tests/mod_bigbluebuttonbn/recording_unpublished/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_unpublished/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } } diff --git a/tests/mod_bigbluebuttonbn/recording_viewed/data.json b/tests/mod_bigbluebuttonbn/recording_viewed/data.json index d5b0f25f7..ad97bc94c 100644 --- a/tests/mod_bigbluebuttonbn/recording_viewed/data.json +++ b/tests/mod_bigbluebuttonbn/recording_viewed/data.json @@ -1,26 +1,4 @@ { - "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, diff --git a/tests/mod_bigbluebuttonbn/recording_viewed/statements.json b/tests/mod_bigbluebuttonbn/recording_viewed/statements.json index 65ee10af2..f2860d7e6 100644 --- a/tests/mod_bigbluebuttonbn/recording_viewed/statements.json +++ b/tests/mod_bigbluebuttonbn/recording_viewed/statements.json @@ -33,14 +33,15 @@ } }, "contextActivities": { - "grouping": [ + "parent": [ { - "id": "http://www.example.org", + "id": "http://www.example.org/course/section.php?id=1", + "objectType": "Activity", "definition": { - "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "test_name" - } + "en": "test_name Section 0" + }, + "type": "http://id.tincanapi.com/activitytype/section" } }, { @@ -55,11 +56,11 @@ ], "category": [ { - "id": "http://moodle.org", + "id": "http://www.example.org", "definition": { - "type": "http://id.tincanapi.com/activitytype/source", + "type": "http://id.tincanapi.com/activitytype/lms", "name": { - "en": "Moodle" + "en": "test_name" } } }