Skip to content

Commit

Permalink
modified testcases to require providing the type and name of the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpesce committed Sep 10, 2023
1 parent 5ee421e commit 1da7cfc
Show file tree
Hide file tree
Showing 85 changed files with 1,535 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions tests/core/course_completed/send_jisc_data/send_jisc_data_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions tests/core/user_created/send_jisc_data/send_jisc_data_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions tests/mod_bigbluebuttonbn/live_session/live_session_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions tests/mod_bigbluebuttonbn/meeting_created/meeting_created_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions tests/mod_bigbluebuttonbn/meeting_ended/meeting_ended_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Loading

0 comments on commit 1da7cfc

Please sign in to comment.