diff --git a/tests/core/course_completed/completing_existing_course/completing_existing_course_test.php b/tests/core/course_completed/completing_existing_course/completing_existing_course_test.php index ac52aeed0..9c921e82c 100644 --- a/tests/core/course_completed/completing_existing_course/completing_existing_course_test.php +++ b/tests/core/course_completed/completing_existing_course/completing_existing_course_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "course"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/core/course_completed/send_jisc_data/send_jisc_data_test.php b/tests/core/course_completed/send_jisc_data/send_jisc_data_test.php index ca019ae74..cbce1f14a 100644 --- a/tests/core/course_completed/send_jisc_data/send_jisc_data_test.php +++ b/tests/core/course_completed/send_jisc_data/send_jisc_data_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "jisc"; + } + /** * Retrieve transformer configuration. * diff --git a/tests/core/course_module_completion_update/completing_existing_module/completing_existing_module_test.php b/tests/core/course_module_completion_update/completing_existing_module/completing_existing_module_test.php index 19f1946ba..ad38013bd 100644 --- a/tests/core/course_module_completion_update/completing_existing_module/completing_existing_module_test.php +++ b/tests/core/course_module_completion_update/completing_existing_module/completing_existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "course"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/core/course_viewed/viewing_existing_course/viewing_existing_course_test.php b/tests/core/course_viewed/viewing_existing_course/viewing_existing_course_test.php index a269f61b2..379c096fa 100644 --- a/tests/core/course_viewed/viewing_existing_course/viewing_existing_course_test.php +++ b/tests/core/course_viewed/viewing_existing_course/viewing_existing_course_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "course"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/core/user_created/existing_user_created/existing_user_created_test.php b/tests/core/user_created/existing_user_created/existing_user_created_test.php index cd7dd877b..339840702 100644 --- a/tests/core/user_created/existing_user_created/existing_user_created_test.php +++ b/tests/core/user_created/existing_user_created/existing_user_created_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "user"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/core/user_created/send_jisc_data/send_jisc_data_test.php b/tests/core/user_created/send_jisc_data/send_jisc_data_test.php index d4444c9b7..728664f9a 100644 --- a/tests/core/user_created/send_jisc_data/send_jisc_data_test.php +++ b/tests/core/user_created/send_jisc_data/send_jisc_data_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "jisc"; + } + /** * Retrieve transformer configuration. * diff --git a/tests/core/user_enrolment_created/existing_user_enrolled/existing_user_enrolled_test.php b/tests/core/user_enrolment_created/existing_user_enrolled/existing_user_enrolled_test.php index 749656f77..16c99b891 100644 --- a/tests/core/user_enrolment_created/existing_user_enrolled/existing_user_enrolled_test.php +++ b/tests/core/user_enrolment_created/existing_user_enrolled/existing_user_enrolled_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "user"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/core/user_loggedin/existing_user_loggedin/existing_user_loggedin_test.php b/tests/core/user_loggedin/existing_user_loggedin/existing_user_loggedin_test.php index c56fab258..129d2f1d6 100644 --- a/tests/core/user_loggedin/existing_user_loggedin/existing_user_loggedin_test.php +++ b/tests/core/user_loggedin/existing_user_loggedin/existing_user_loggedin_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "user"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/core/user_loggedout/existing_user_loggedout/existing_user_loggedout_test.php b/tests/core/user_loggedout/existing_user_loggedout/existing_user_loggedout_test.php index ccc4e20a5..6349a7af8 100644 --- a/tests/core/user_loggedout/existing_user_loggedout/existing_user_loggedout_test.php +++ b/tests/core/user_loggedout/existing_user_loggedout/existing_user_loggedout_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "core"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "user"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/existing_assignment_graded_comment_test.php b/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/existing_assignment_graded_comment_test.php index 506b93c7f..2c2fd61a2 100644 --- a/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/existing_assignment_graded_comment_test.php +++ b/tests/mod_assign/assignment_graded/existing_assignment_graded_comment/existing_assignment_graded_comment_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "assign"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/existing_assignment_graded_nocomment_test.php b/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/existing_assignment_graded_nocomment_test.php index 4703a27b1..b25118ed8 100644 --- a/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/existing_assignment_graded_nocomment_test.php +++ b/tests/mod_assign/assignment_graded/existing_assignment_graded_nocomment/existing_assignment_graded_nocomment_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "assign"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_assign/assignment_submitted/existing_assignment_submitted/existing_assignment_submitted_test.php b/tests/mod_assign/assignment_submitted/existing_assignment_submitted/existing_assignment_submitted_test.php index b70a552f3..494fb8e60 100644 --- a/tests/mod_assign/assignment_submitted/existing_assignment_submitted/existing_assignment_submitted_test.php +++ b/tests/mod_assign/assignment_submitted/existing_assignment_submitted/existing_assignment_submitted_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "assign"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/activity_management_viewed/activity_management_viewed_test.php b/tests/mod_bigbluebuttonbn/activity_management_viewed/activity_management_viewed_test.php index 70a9a6139..765c72909 100644 --- a/tests/mod_bigbluebuttonbn/activity_management_viewed/activity_management_viewed_test.php +++ b/tests/mod_bigbluebuttonbn/activity_management_viewed/activity_management_viewed_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/live_session/live_session_test.php b/tests/mod_bigbluebuttonbn/live_session/live_session_test.php index 701c2a8c7..fd46b8b14 100644 --- a/tests/mod_bigbluebuttonbn/live_session/live_session_test.php +++ b/tests/mod_bigbluebuttonbn/live_session/live_session_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/meeting_created/meeting_created_test.php b/tests/mod_bigbluebuttonbn/meeting_created/meeting_created_test.php index 5d8c9c29f..d2353ef6b 100644 --- a/tests/mod_bigbluebuttonbn/meeting_created/meeting_created_test.php +++ b/tests/mod_bigbluebuttonbn/meeting_created/meeting_created_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/meeting_ended/meeting_ended_test.php b/tests/mod_bigbluebuttonbn/meeting_ended/meeting_ended_test.php index 669af2878..9601f68b6 100644 --- a/tests/mod_bigbluebuttonbn/meeting_ended/meeting_ended_test.php +++ b/tests/mod_bigbluebuttonbn/meeting_ended/meeting_ended_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/meeting_joined/meeting_joined_test.php b/tests/mod_bigbluebuttonbn/meeting_joined/meeting_joined_test.php index f8b150c8b..c42adf1ec 100644 --- a/tests/mod_bigbluebuttonbn/meeting_joined/meeting_joined_test.php +++ b/tests/mod_bigbluebuttonbn/meeting_joined/meeting_joined_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/meeting_left/meeting_left_test.php b/tests/mod_bigbluebuttonbn/meeting_left/meeting_left_test.php index d271f24ae..1a40ceef5 100644 --- a/tests/mod_bigbluebuttonbn/meeting_left/meeting_left_test.php +++ b/tests/mod_bigbluebuttonbn/meeting_left/meeting_left_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/recording_deleted/recording_deleted_test.php b/tests/mod_bigbluebuttonbn/recording_deleted/recording_deleted_test.php index df5dbf285..165e4472f 100644 --- a/tests/mod_bigbluebuttonbn/recording_deleted/recording_deleted_test.php +++ b/tests/mod_bigbluebuttonbn/recording_deleted/recording_deleted_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/recording_edited/recording_edited_test.php b/tests/mod_bigbluebuttonbn/recording_edited/recording_edited_test.php index 1f79ca1aa..c64c43057 100644 --- a/tests/mod_bigbluebuttonbn/recording_edited/recording_edited_test.php +++ b/tests/mod_bigbluebuttonbn/recording_edited/recording_edited_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/recording_imported/recording_imported_test.php b/tests/mod_bigbluebuttonbn/recording_imported/recording_imported_test.php index ebd58bec2..e52d42516 100644 --- a/tests/mod_bigbluebuttonbn/recording_imported/recording_imported_test.php +++ b/tests/mod_bigbluebuttonbn/recording_imported/recording_imported_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/recording_protected/recording_protected_test.php b/tests/mod_bigbluebuttonbn/recording_protected/recording_protected_test.php index d55118f9b..24163b321 100644 --- a/tests/mod_bigbluebuttonbn/recording_protected/recording_protected_test.php +++ b/tests/mod_bigbluebuttonbn/recording_protected/recording_protected_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/recording_published/recording_published_test.php b/tests/mod_bigbluebuttonbn/recording_published/recording_published_test.php index cb991a762..38931430a 100644 --- a/tests/mod_bigbluebuttonbn/recording_published/recording_published_test.php +++ b/tests/mod_bigbluebuttonbn/recording_published/recording_published_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/recording_unprotected/recording_unprotected_test.php b/tests/mod_bigbluebuttonbn/recording_unprotected/recording_unprotected_test.php index 9129267b9..26cc870cf 100644 --- a/tests/mod_bigbluebuttonbn/recording_unprotected/recording_unprotected_test.php +++ b/tests/mod_bigbluebuttonbn/recording_unprotected/recording_unprotected_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/recording_unpublished/recording_unpublished_test.php b/tests/mod_bigbluebuttonbn/recording_unpublished/recording_unpublished_test.php index 869f483c6..c538d2f46 100644 --- a/tests/mod_bigbluebuttonbn/recording_unpublished/recording_unpublished_test.php +++ b/tests/mod_bigbluebuttonbn/recording_unpublished/recording_unpublished_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_bigbluebuttonbn/recording_viewed/recording_viewed_test.php b/tests/mod_bigbluebuttonbn/recording_viewed/recording_viewed_test.php index 941f0173a..e0d76c9a4 100644 --- a/tests/mod_bigbluebuttonbn/recording_viewed/recording_viewed_test.php +++ b/tests/mod_bigbluebuttonbn/recording_viewed/recording_viewed_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/existing_chapter_viewed_with_parent_test.php b/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/existing_chapter_viewed_with_parent_test.php index 9150dc1e5..dae693e92 100644 --- a/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/existing_chapter_viewed_with_parent_test.php +++ b/tests/mod_book/chapter_viewed/existing_chapter_viewed_with_parent/existing_chapter_viewed_with_parent_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "book"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/existing_chapter_viewed_without_parent_test.php b/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/existing_chapter_viewed_without_parent_test.php index 90d44f648..f1ce6059a 100644 --- a/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/existing_chapter_viewed_without_parent_test.php +++ b/tests/mod_book/chapter_viewed/existing_chapter_viewed_without_parent/existing_chapter_viewed_without_parent_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "book"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_book/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_book/course_module_viewed/existing_module/existing_module_test.php index db00ea5d4..6ba5e4945 100644 --- a/tests/mod_book/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_book/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "book"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_chat/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_chat/course_module_viewed/existing_module/existing_module_test.php index e90ad9c36..a131cdbd4 100644 --- a/tests/mod_chat/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_chat/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "chat"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_choice/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_choice/course_module_viewed/existing_module/existing_module_test.php index f67a126e6..83557c6fb 100644 --- a/tests/mod_choice/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_choice/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "choice"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_data/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_data/course_module_viewed/existing_module/existing_module_test.php index 2568376d2..81fc252ee 100644 --- a/tests/mod_data/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_data/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "bigbluebuttonbn"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/existing_booking_canceled_test.php b/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/existing_booking_canceled_test.php index 2f35cfaf0..23850aa15 100644 --- a/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/existing_booking_canceled_test.php +++ b/tests/mod_facetoface/cancel_booking/existing_booking_cancelled/existing_booking_canceled_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "facetoface"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_facetoface/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_facetoface/course_module_viewed/existing_module/existing_module_test.php index 0adacc67f..dd055a8f1 100644 --- a/tests/mod_facetoface/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_facetoface/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "facetoface"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_facetoface/signup_success/existing_signup_success/existing_signup_success_test.php b/tests/mod_facetoface/signup_success/existing_signup_success/existing_signup_success_test.php index 76b073b6e..8bf37bc00 100644 --- a/tests/mod_facetoface/signup_success/existing_signup_success/existing_signup_success_test.php +++ b/tests/mod_facetoface/signup_success/existing_signup_success/existing_signup_success_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "facetoface"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_facetoface/take_attendance/existing_attendance_taken/existing_attendance_taken_test.php b/tests/mod_facetoface/take_attendance/existing_attendance_taken/existing_attendance_taken_test.php index 5541ca2e2..da5877e75 100644 --- a/tests/mod_facetoface/take_attendance/existing_attendance_taken/existing_attendance_taken_test.php +++ b/tests/mod_facetoface/take_attendance/existing_attendance_taken/existing_attendance_taken_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "facetoface"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_feedback/course_module_viewed/viewing_feedback/viewing_feedback_test.php b/tests/mod_feedback/course_module_viewed/viewing_feedback/viewing_feedback_test.php index 17085c4ca..4ff0b215b 100644 --- a/tests/mod_feedback/course_module_viewed/viewing_feedback/viewing_feedback_test.php +++ b/tests/mod_feedback/course_module_viewed/viewing_feedback/viewing_feedback_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "feedback"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_feedback/response_submitted/multichoice/multichoice_test.php b/tests/mod_feedback/response_submitted/multichoice/multichoice_test.php index ca5b66c9c..c1ba029e8 100644 --- a/tests/mod_feedback/response_submitted/multichoice/multichoice_test.php +++ b/tests/mod_feedback/response_submitted/multichoice/multichoice_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "feedback"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_feedback/response_submitted/multichoicerated/multichoicerated_test.php b/tests/mod_feedback/response_submitted/multichoicerated/multichoicerated_test.php index 06b99a7b2..8b12365aa 100644 --- a/tests/mod_feedback/response_submitted/multichoicerated/multichoicerated_test.php +++ b/tests/mod_feedback/response_submitted/multichoicerated/multichoicerated_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "feedback"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_feedback/response_submitted/no_items/no_items_test.php b/tests/mod_feedback/response_submitted/no_items/no_items_test.php index c8279417a..8fa3e26a3 100644 --- a/tests/mod_feedback/response_submitted/no_items/no_items_test.php +++ b/tests/mod_feedback/response_submitted/no_items/no_items_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "feedback"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_feedback/response_submitted/numerical/numerical_test.php b/tests/mod_feedback/response_submitted/numerical/numerical_test.php index d431e858f..27b7bffa3 100644 --- a/tests/mod_feedback/response_submitted/numerical/numerical_test.php +++ b/tests/mod_feedback/response_submitted/numerical/numerical_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "feedback"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_feedback/response_submitted/textarea/textarea_test.php b/tests/mod_feedback/response_submitted/textarea/textarea_test.php index 177faec96..869c936a1 100644 --- a/tests/mod_feedback/response_submitted/textarea/textarea_test.php +++ b/tests/mod_feedback/response_submitted/textarea/textarea_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "feedback"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_feedback/response_submitted/textfield/textfield_test.php b/tests/mod_feedback/response_submitted/textfield/textfield_test.php index 738e16f2c..35309e1cf 100644 --- a/tests/mod_feedback/response_submitted/textfield/textfield_test.php +++ b/tests/mod_feedback/response_submitted/textfield/textfield_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "feedback"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_feedback/response_submitted/unknown_typ/unknown_typ_test.php b/tests/mod_feedback/response_submitted/unknown_typ/unknown_typ_test.php index 9dccd8b4a..491bb441d 100644 --- a/tests/mod_feedback/response_submitted/unknown_typ/unknown_typ_test.php +++ b/tests/mod_feedback/response_submitted/unknown_typ/unknown_typ_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "feedback"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_folder/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_folder/course_module_viewed/existing_module/existing_module_test.php index 6385a6373..12641e696 100644 --- a/tests/mod_folder/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_folder/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "folder"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_forum/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_forum/course_module_viewed/existing_module/existing_module_test.php index 013d6d486..e65a51536 100644 --- a/tests/mod_forum/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_forum/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "forum"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_forum/discussion_created/existing_module_test.php b/tests/mod_forum/discussion_created/existing_module_test.php index 6eea90ff2..6dee4f65d 100644 --- a/tests/mod_forum/discussion_created/existing_module_test.php +++ b/tests/mod_forum/discussion_created/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "forum"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_forum/discussion_viewed/existing_discussion_viewed/existing_discussion_viewed_test.php b/tests/mod_forum/discussion_viewed/existing_discussion_viewed/existing_discussion_viewed_test.php index 5b6eef4f4..7f7fa824d 100644 --- a/tests/mod_forum/discussion_viewed/existing_discussion_viewed/existing_discussion_viewed_test.php +++ b/tests/mod_forum/discussion_viewed/existing_discussion_viewed/existing_discussion_viewed_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "forum"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_forum/post_created/post_created_test.php b/tests/mod_forum/post_created/post_created_test.php index f773d2c12..6cd34fbba 100644 --- a/tests/mod_forum/post_created/post_created_test.php +++ b/tests/mod_forum/post_created/post_created_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "forum"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_forum/user_report_viewed/existing_report_viewed/existing_report_viewed_test.php b/tests/mod_forum/user_report_viewed/existing_report_viewed/existing_report_viewed_test.php index af21f7a18..50cd19882 100644 --- a/tests/mod_forum/user_report_viewed/existing_report_viewed/existing_report_viewed_test.php +++ b/tests/mod_forum/user_report_viewed/existing_report_viewed/existing_report_viewed_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "forum"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_forum/user_report_viewed/existing_report_viewed_all_courses/existing_report_viewed_all_courses_test.php b/tests/mod_forum/user_report_viewed/existing_report_viewed_all_courses/existing_report_viewed_all_courses_test.php index d8cdd1e93..5136412d1 100644 --- a/tests/mod_forum/user_report_viewed/existing_report_viewed_all_courses/existing_report_viewed_all_courses_test.php +++ b/tests/mod_forum/user_report_viewed/existing_report_viewed_all_courses/existing_report_viewed_all_courses_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "forum"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_glossary/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_glossary/course_module_viewed/existing_module/existing_module_test.php index 5736b5cbc..537fc9782 100644 --- a/tests/mod_glossary/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_glossary/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "glossary"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_imscp/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_imscp/course_module_viewed/existing_module/existing_module_test.php index ba26e36db..d01aa1145 100644 --- a/tests/mod_imscp/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_imscp/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "imscp"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_lesson/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_lesson/course_module_viewed/existing_module/existing_module_test.php index fa2e3e7b7..c90d5bd7c 100644 --- a/tests/mod_lesson/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_lesson/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "lesson"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_lti/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_lti/course_module_viewed/existing_module/existing_module_test.php index c2be60da7..e41e7606c 100644 --- a/tests/mod_lti/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_lti/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "lti"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_page/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_page/course_module_viewed/existing_module/existing_module_test.php index 707cd305c..6487dd1d3 100644 --- a/tests/mod_page/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_page/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "page"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_reviewed/existing_attempt_reviewed/existing_attempt_reviewed_test.php b/tests/mod_quiz/attempt_reviewed/existing_attempt_reviewed/existing_attempt_reviewed_test.php index 0a3840c01..734676c47 100644 --- a/tests/mod_quiz/attempt_reviewed/existing_attempt_reviewed/existing_attempt_reviewed_test.php +++ b/tests/mod_quiz/attempt_reviewed/existing_attempt_reviewed/existing_attempt_reviewed_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_started/existing_attempt_started/existing_attempt_started_test.php b/tests/mod_quiz/attempt_started/existing_attempt_started/existing_attempt_started_test.php index a77a2cd8b..ced18bfa7 100644 --- a/tests/mod_quiz/attempt_started/existing_attempt_started/existing_attempt_started_test.php +++ b/tests/mod_quiz/attempt_started/existing_attempt_started/existing_attempt_started_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/essay/essay_test.php b/tests/mod_quiz/attempt_submitted/essay/essay_test.php index 572a6301b..093aeb8ee 100644 --- a/tests/mod_quiz/attempt_submitted/essay/essay_test.php +++ b/tests/mod_quiz/attempt_submitted/essay/essay_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/essay_null_response/essay_null_response_test.php b/tests/mod_quiz/attempt_submitted/essay_null_response/essay_null_response_test.php index 4d0980ca2..68b215939 100644 --- a/tests/mod_quiz/attempt_submitted/essay_null_response/essay_null_response_test.php +++ b/tests/mod_quiz/attempt_submitted/essay_null_response/essay_null_response_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/gapselect/gapselect_test.php b/tests/mod_quiz/attempt_submitted/gapselect/gapselect_test.php index 04a795b3f..bc63ebb79 100644 --- a/tests/mod_quiz/attempt_submitted/gapselect/gapselect_test.php +++ b/tests/mod_quiz/attempt_submitted/gapselect/gapselect_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/match/match_test.php b/tests/mod_quiz/attempt_submitted/match/match_test.php index d5fe41f92..dd232eba5 100644 --- a/tests/mod_quiz/attempt_submitted/match/match_test.php +++ b/tests/mod_quiz/attempt_submitted/match/match_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/multichoice/multichoice_test.php b/tests/mod_quiz/attempt_submitted/multichoice/multichoice_test.php index 70aff7926..e419e9757 100644 --- a/tests/mod_quiz/attempt_submitted/multichoice/multichoice_test.php +++ b/tests/mod_quiz/attempt_submitted/multichoice/multichoice_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/multichoice_withchoices/multichoice_withchoices_test.php b/tests/mod_quiz/attempt_submitted/multichoice_withchoices/multichoice_withchoices_test.php index 76dddc4f0..186f9be89 100644 --- a/tests/mod_quiz/attempt_submitted/multichoice_withchoices/multichoice_withchoices_test.php +++ b/tests/mod_quiz/attempt_submitted/multichoice_withchoices/multichoice_withchoices_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Retrieve the transformer configuration. * diff --git a/tests/mod_quiz/attempt_submitted/multichoiceset/multichoiceset_test.php b/tests/mod_quiz/attempt_submitted/multichoiceset/multichoiceset_test.php index 09b16c487..2f7fd3f95 100644 --- a/tests/mod_quiz/attempt_submitted/multichoiceset/multichoiceset_test.php +++ b/tests/mod_quiz/attempt_submitted/multichoiceset/multichoiceset_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/multichoiceset_withchoices_test.php b/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/multichoiceset_withchoices_test.php index 60bdd98af..0aa8defef 100644 --- a/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/multichoiceset_withchoices_test.php +++ b/tests/mod_quiz/attempt_submitted/multichoiceset_withchoices/multichoiceset_withchoices_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Retrieve transformer configuration. * diff --git a/tests/mod_quiz/attempt_submitted/no_questions/no_questions_test.php b/tests/mod_quiz/attempt_submitted/no_questions/no_questions_test.php index 007fa835a..18f469423 100644 --- a/tests/mod_quiz/attempt_submitted/no_questions/no_questions_test.php +++ b/tests/mod_quiz/attempt_submitted/no_questions/no_questions_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/numerical/numerical_test.php b/tests/mod_quiz/attempt_submitted/numerical/numerical_test.php index c8ba1730f..f8be18ee3 100644 --- a/tests/mod_quiz/attempt_submitted/numerical/numerical_test.php +++ b/tests/mod_quiz/attempt_submitted/numerical/numerical_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/randomsamatch/randomsamatch_test.php b/tests/mod_quiz/attempt_submitted/randomsamatch/randomsamatch_test.php index aed829e62..aa8f0ecdf 100644 --- a/tests/mod_quiz/attempt_submitted/randomsamatch/randomsamatch_test.php +++ b/tests/mod_quiz/attempt_submitted/randomsamatch/randomsamatch_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/shortanswer/shortanswer_test.php b/tests/mod_quiz/attempt_submitted/shortanswer/shortanswer_test.php index 0188b386f..ffe18bbef 100644 --- a/tests/mod_quiz/attempt_submitted/shortanswer/shortanswer_test.php +++ b/tests/mod_quiz/attempt_submitted/shortanswer/shortanswer_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/truefalse/truefalse_test.php b/tests/mod_quiz/attempt_submitted/truefalse/truefalse_test.php index 87ce2d913..390121e60 100644 --- a/tests/mod_quiz/attempt_submitted/truefalse/truefalse_test.php +++ b/tests/mod_quiz/attempt_submitted/truefalse/truefalse_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_submitted/unknown_qtype/unknown_qtype_test.php b/tests/mod_quiz/attempt_submitted/unknown_qtype/unknown_qtype_test.php index 08b9b5394..c8c542a85 100644 --- a/tests/mod_quiz/attempt_submitted/unknown_qtype/unknown_qtype_test.php +++ b/tests/mod_quiz/attempt_submitted/unknown_qtype/unknown_qtype_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/attempt_viewed/existing_module/existing_module_test.php b/tests/mod_quiz/attempt_viewed/existing_module/existing_module_test.php index 766238c57..e479db149 100644 --- a/tests/mod_quiz/attempt_viewed/existing_module/existing_module_test.php +++ b/tests/mod_quiz/attempt_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_quiz/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_quiz/course_module_viewed/existing_module/existing_module_test.php index 1833825c5..9dc017889 100644 --- a/tests/mod_quiz/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_quiz/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "quiz"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_resource/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_resource/course_module_viewed/existing_module/existing_module_test.php index 193945e13..e7be21230 100644 --- a/tests/mod_resource/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_resource/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "resource"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_scorm/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_scorm/course_module_viewed/existing_module/existing_module_test.php index e610e8434..28cfa47ac 100644 --- a/tests/mod_scorm/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_scorm/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "scorm"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_scorm/sco_launched/existing_sco_launched/existing_sco_launched_test.php b/tests/mod_scorm/sco_launched/existing_sco_launched/existing_sco_launched_test.php index fc0a9ac76..d6d704fa6 100644 --- a/tests/mod_scorm/sco_launched/existing_sco_launched/existing_sco_launched_test.php +++ b/tests/mod_scorm/sco_launched/existing_sco_launched/existing_sco_launched_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "scorm"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_scorm/scoreraw_submitted/existing_scoreraw_submitted/existing_scoreraw_submitted_test.php b/tests/mod_scorm/scoreraw_submitted/existing_scoreraw_submitted/existing_scoreraw_submitted_test.php index c2c93d341..eb41cdd67 100644 --- a/tests/mod_scorm/scoreraw_submitted/existing_scoreraw_submitted/existing_scoreraw_submitted_test.php +++ b/tests/mod_scorm/scoreraw_submitted/existing_scoreraw_submitted/existing_scoreraw_submitted_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "scorm"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_scorm/status_submitted/existing_status_submitted/existing_status_submitted_test.php b/tests/mod_scorm/status_submitted/existing_status_submitted/existing_status_submitted_test.php index 62fdf28bf..b9e3b47e2 100644 --- a/tests/mod_scorm/status_submitted/existing_status_submitted/existing_status_submitted_test.php +++ b/tests/mod_scorm/status_submitted/existing_status_submitted/existing_status_submitted_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "scorm"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_survey/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_survey/course_module_viewed/existing_module/existing_module_test.php index fe01fa784..73184bfa9 100644 --- a/tests/mod_survey/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_survey/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "survey"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_url/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_url/course_module_viewed/existing_module/existing_module_test.php index 763afe2cf..ef5134540 100644 --- a/tests/mod_url/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_url/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "url"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_wiki/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_wiki/course_module_viewed/existing_module/existing_module_test.php index c9e2f83ff..9e149d07a 100644 --- a/tests/mod_wiki/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_wiki/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "wiki"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/mod_workshop/course_module_viewed/existing_module/existing_module_test.php b/tests/mod_workshop/course_module_viewed/existing_module/existing_module_test.php index 4049696f1..7295cc6ef 100644 --- a/tests/mod_workshop/course_module_viewed/existing_module/existing_module_test.php +++ b/tests/mod_workshop/course_module_viewed/existing_module/existing_module_test.php @@ -42,6 +42,24 @@ protected function get_test_dir() { return __DIR__; } + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "mod"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "workshop"; + } + /** * Appease auto-detecting of test cases. xapi_test_case has default test cases. * diff --git a/tests/totara_program/program_assigned/existing_program/test.php b/tests/totara_program/program_assigned/existing_program/test.php index 34a8e366b..dbbd2734d 100644 --- a/tests/totara_program/program_assigned/existing_program/test.php +++ b/tests/totara_program/program_assigned/existing_program/test.php @@ -35,4 +35,22 @@ class test extends \logstore_xapi\xapi_test_case { protected function get_test_dir() { return __DIR__; } + + /** + * Retrieve the plugin type being tested. + * + * @return string + */ + protected function get_plugin_type() { + return "totara"; + } + + /** + * Retrieve the plugin name being tested. + * + * @return string + */ + protected function get_plugin_name() { + return "program"; + } } diff --git a/tests/xapi_test_case.php b/tests/xapi_test_case.php index 55df45067..6d1b1ecb4 100644 --- a/tests/xapi_test_case.php +++ b/tests/xapi_test_case.php @@ -41,6 +41,16 @@ abstract class xapi_test_case extends \advanced_testcase { */ abstract protected function get_test_dir(); + /** + * Retrieve the plugin type being tested. + */ + abstract protected function get_plugin_type(); + + /** + * Retrieve the plugin name being tested. + */ + abstract protected function get_plugin_name(); + /** * Retrieve the test data from data.json. * @@ -151,8 +161,18 @@ private function assert_valid_xapi_statement(array $statement) { * @return void */ private function assert_expected_statements(array $statements) { - $expectedstatements = $this->get_expected_statements(); - $actualstatements = json_encode($statements, JSON_PRETTY_PRINT); - $this->assertEquals($expectedstatements, $actualstatements); + + // Skip the test if the plugin is not installed. + $pluginname = $this->get_plugin_name(); + $plugintype = $this->get_plugin_type(); + $plugins = \core_plugin_manager::instance()->get_installed_plugins($plugintype); + + if (array_key_exists($pluginname, $plugins) || $plugintype == 'core') { + $expectedstatements = $this->get_expected_statements(); + $actualstatements = json_encode($statements, JSON_PRETTY_PRINT); + $this->assertEquals($expectedstatements, $actualstatements); + } else { + $this->markTestSkipped('Plugin ' . $pluginname . ' not installed, skipping'); + } } }