MDL-81581 phpunit: Move multiple assert_same_xml() to common one

This commit is contained in:
Eloy Lafuente (stronk7)
2024-04-25 18:52:25 +02:00
parent f0c1a3789d
commit 894ee17f53
5 changed files with 13 additions and 32 deletions
@@ -47,11 +47,6 @@ require_once($CFG->dirroot . '/question/engine/tests/helpers.php');
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class xmlformat_test extends \question_testcase {
public function assert_same_xml($expectedxml, $xml) {
$this->assertEquals(str_replace("\r\n", "\n", $expectedxml),
str_replace("\r\n", "\n", $xml));
}
public function make_test_question() {
global $USER;
$q = new \stdClass();