Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Done
-
Affects Version/s: 3.7
-
Fix Version/s: None
-
Component/s: Database activity module, Quiz, Unit tests
-
Labels:None
-
Affected Branches:MOODLE_37_STABLE
Description
DbUnit was deprecated recently https://github.com/sebastianbergmann/dbunit/issues/217
We need to prepare for its pending removal upon the release of PHPUnit 8.
The only uses are:
- Directly:
- lib/phpunit/classes/arraydataset.php
- lib/tests/statslib_test.php
- advanced_testcase::createFlatXMLDataSet
(Unused in core) - advanced_testcase::createXMLDataSet
- lib/tests/statslib_test.php
- advanced_testcase::createCsvDataSet
- mod/quiz/tests/attempt_walkthrough_from_csv_test.php
- mod/data/tests/search_test.php
- advanced_testcase::loadDataSet
- mod/data/tests/search_test.php
- advanced_testcase::createArrayDataSet
(Unused in core) - References to DbUnit:
- mod/quiz/report/responses/tests/responses_from_steps_walkthrough_test.php
- mod/quiz/report/statistics/tests/stats_from_steps_walkthrough_test.php
- mod/quiz/tests/attempt_walkthrough_from_csv_test.php
Pinging Tim Hunt for your info on this .
Attachments
Issue Links
- Discovered while testing
-
MDL-64599 Any unit test that calls createArrayDataSet() fails
-
- Closed
-
- has a non-specific relationship to
-
MDL-69882 Final deprecation of phpunit/dbunit methods in advanced_testcase
-
- Open
-
- will be (partly) resolved by
-
MDL-67673 Upgrade phpunit to 8.5.x
-
- Closed
-
- will help resolve
-
MDL-66259 Should all qtype get_question_options() call parent ?
-
- Closed
-