Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests broken in > Moodle 4.1 #69

Open
matthewhilton opened this issue Mar 21, 2023 · 0 comments
Open

Unit tests broken in > Moodle 4.1 #69

matthewhilton opened this issue Mar 21, 2023 · 0 comments

Comments

@matthewhilton
Copy link

matthewhilton commented Mar 21, 2023

Since https://tracker.moodle.org/browse/MDL-64600 and https://tracker.moodle.org/browse/MDL-67673 lots of the tests are not running properly.

This is because of the removal of DB unit, so functions such as createXMLDataSet are not longer allowed.

e.g.

5) block_grade_me_testcase::test_query_glossary with data set "test1" ('glossary.xml', array(array(0, '0', 'glossary', 0, 'glossaryitem1', 0, 0, 0, 1424354368, 1), array(0, '0', 'glossary', 1, 'glossaryitem2', 1, 0, 0, 1424354369, 2), array(0, '0', 'glossary', 2, 'glossaryitem3', 2, 0, 0, 1424354370, 3)))
Error: Call to undefined method phpunit_dataset::getTableNames()

/var/www/ec-41/blocks/grade_me/tests/grade_me_test.php:56
/var/www/ec-41/blocks/grade_me/tests/grade_me_test.php:665
/var/www/ec-41/blocks/grade_me/tests/grade_me_test.php:595
/var/www/ec-41/lib/phpunit/classes/advanced_testcase.php:80
@matthewhilton matthewhilton changed the title Unit tests broken in 4.1 Unit tests broken in > Moodle 4.1 Mar 21, 2023
matthewhilton added a commit to matthewhilton/moodle-block_grade_me that referenced this issue Mar 21, 2023
matthewhilton added a commit to matthewhilton/moodle-block_grade_me that referenced this issue Mar 21, 2023
NagaSirishaGarapati pushed a commit to catalyst/moodle-block_grade_me that referenced this issue May 19, 2023
NagaSirishaGarapati pushed a commit to catalyst/moodle-block_grade_me that referenced this issue May 22, 2023
NagaSirishaGarapati pushed a commit to catalyst/moodle-block_grade_me that referenced this issue May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant