Merge branch 'MDL-82148_402' of https://github.com/stronk7/moodle into MOODLE_402_STABLE
This commit is contained in:
@@ -29,12 +29,8 @@ use GuzzleHttp\Psr7\Uri;
|
||||
* @category test
|
||||
* @copyright 2022 Safat Shahin <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*
|
||||
* @coversDefaultClass \core\http_client
|
||||
* @coversDefaultClass \core\local\guzzle\redirect_middleware
|
||||
* @coversDefaultClass \core\local\guzzle\check_request
|
||||
* @coversDefaultClass \core\local\guzzle\cache_item
|
||||
* @coversDefaultClass \core\local\guzzle\cache_handler
|
||||
* @coversDefaultClass \core\local\guzzle\cache_storage
|
||||
*/
|
||||
class http_client_test extends \advanced_testcase {
|
||||
|
||||
|
||||
@@ -31,9 +31,6 @@ require_once($CFG->dirroot . '/mod/quiz/locallib.php');
|
||||
* @copyright 2021 Catalyst IT Australia Pty Ltd
|
||||
* @author Safat Shahin <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @coversDefaultClass \mod_quiz\question\bank\qbank_helper
|
||||
* @coversDefaultClass \backup_quiz_activity_structure_step
|
||||
* @coversDefaultClass \restore_quiz_activity_structure_step
|
||||
*/
|
||||
class quiz_question_restore_test extends \advanced_testcase {
|
||||
use \quiz_question_helper_test_trait;
|
||||
@@ -58,7 +55,7 @@ class quiz_question_restore_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test a quiz backup and restore in a different course without attempts for course question bank.
|
||||
*
|
||||
* @covers ::get_question_structure
|
||||
* @covers \mod_quiz\question\bank\qbank_helper::get_question_structure
|
||||
*/
|
||||
public function test_quiz_restore_in_a_different_course_using_course_question_bank() {
|
||||
$this->resetAfterTest();
|
||||
@@ -97,7 +94,7 @@ class quiz_question_restore_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test a quiz backup and restore in a different course without attempts for quiz question bank.
|
||||
*
|
||||
* @covers ::get_question_structure
|
||||
* @covers \mod_quiz\question\bank\qbank_helper::get_question_structure
|
||||
*/
|
||||
public function test_quiz_restore_in_a_different_course_using_quiz_question_bank() {
|
||||
$this->resetAfterTest();
|
||||
@@ -197,7 +194,7 @@ class quiz_question_restore_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test quiz restore with attempts.
|
||||
*
|
||||
* @covers ::get_question_structure
|
||||
* @covers \mod_quiz\question\bank\qbank_helper::get_question_structure
|
||||
*/
|
||||
public function test_quiz_restore_with_attempts() {
|
||||
$this->resetAfterTest();
|
||||
@@ -236,7 +233,7 @@ class quiz_question_restore_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test pre 4.0 quiz restore for regular questions.
|
||||
*
|
||||
* @covers ::process_quiz_question_legacy_instance
|
||||
* @covers \restore_quiz_activity_structure_step::process_quiz_question_legacy_instance
|
||||
*/
|
||||
public function test_pre_4_quiz_restore_for_regular_questions() {
|
||||
global $USER, $DB;
|
||||
@@ -278,7 +275,7 @@ class quiz_question_restore_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test pre 4.0 quiz restore for random questions.
|
||||
*
|
||||
* @covers ::process_quiz_question_legacy_instance
|
||||
* @covers \restore_quiz_activity_structure_step::process_quiz_question_legacy_instance
|
||||
*/
|
||||
public function test_pre_4_quiz_restore_for_random_questions() {
|
||||
global $USER, $DB;
|
||||
@@ -326,7 +323,7 @@ class quiz_question_restore_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test pre 4.0 quiz restore for random question tags.
|
||||
*
|
||||
* @covers ::process_quiz_question_legacy_instance
|
||||
* @covers \restore_quiz_activity_structure_step::process_quiz_question_legacy_instance
|
||||
*/
|
||||
public function test_pre_4_quiz_restore_for_random_question_tags() {
|
||||
global $USER, $DB;
|
||||
@@ -383,7 +380,7 @@ class quiz_question_restore_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test pre 4.0 quiz restore for random question used on multiple quizzes.
|
||||
*
|
||||
* @covers ::process_quiz_question_legacy_instance
|
||||
* @covers \restore_quiz_activity_structure_step::process_quiz_question_legacy_instance
|
||||
*/
|
||||
public function test_pre_4_quiz_restore_shared_random_question() {
|
||||
global $USER, $DB;
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* @category test
|
||||
* @copyright 2018 Andrew Nicols <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @coversDefaultClass \core_privacy\local\legacy_polyfill
|
||||
*/
|
||||
|
||||
namespace core_privacy;
|
||||
|
||||
+3
-3
@@ -26,9 +26,9 @@ use qbank_editquestion\external\update_question_version_status;
|
||||
* @copyright 2021 Catalyst IT Australia Pty Ltd
|
||||
* @author Safat Shahin <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @coversDefaultClass \core_question\local\bank\question_version_status
|
||||
*
|
||||
* @covers \core_question\local\bank\question_version_status
|
||||
* @coversDefaultClass \qbank_editquestion\external\update_question_version_status
|
||||
* @coversDefaultClass \qbank_editquestion\editquestion_helper
|
||||
*/
|
||||
class update_question_version_status_test extends \advanced_testcase {
|
||||
|
||||
@@ -53,7 +53,7 @@ class update_question_version_status_test extends \advanced_testcase {
|
||||
* Test if the submit status webservice changes the status of the question.
|
||||
*
|
||||
* @covers ::execute
|
||||
* @covers ::get_question_status_string
|
||||
* @covers \qbank_editquestion\editquestion_helper::get_question_status_string
|
||||
*/
|
||||
public function test_submit_status_updates_the_question_status() {
|
||||
global $DB;
|
||||
|
||||
Reference in New Issue
Block a user