Details
-
Type:
Task
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 2.0
-
Fix Version/s: STABLE backlog
-
Component/s: Unit tests
-
Labels:
-
Difficulty:Difficult
-
Affected Branches:MOODLE_20_STABLE
Description
Some months ago FakeDBUnitTestCase were left nominally out. With that, an important number of tests have remained "hidden" (skipped) since then.
Since yesterday (Nov 30th 2009), due to MDL-21007, they are, at least, showed as exceptions when running unit tests with message:
"Unit test XXXX of type FakeDBUnitTestCase no longer supported. Must be migrated to UnitTestCaseUsingDatabase"
So current tests in core using FakeDBUnitTestCase must be migrated to newer UnitTestCaseUsingDatabase alternative. That includes, at least:
- grade tests
- portfolio tests
- completion and condition tests
- simpletest tests
So steps are:
- Migrate all the tests
- Document UnitTestCaseUsingDatabase
- Drop FakeDBUnitTestCase completely from HEAD
Issue Links
| This issue is blocked by: | ||||
| MDL-21038 | update portfolio tests to work with the new mock db stuff in HEAD and write new ones for leap2a |
|
|
|
| This issue has a non-specific relationship to: | ||||
| MDL-18607 | The fact that unit tests involving the database have been disabled it obstructing my work |
|
|
|
| MDL-21007 | FakeDBUnitTestCase and UnitTestCaseUsingDatabase are being silently skipped |
|
|
|
I've started with grade ones to learn how that is supposed to work.