MDL-32149 PHPUnit test support - part 2
Includes: * constants refactoring * reworked db table init * support for $CFG->debug = -1 * functional DB tests * fixed $DB->get_indexes() to not throw exceptions when table does not exist * fix handling of user passwords in test db * add debug info to exception messages * removed unnecessary PHP debug errors from mathslib * fixed @error suppression in get_string * fixed PHPUnit error handler setup * added timezone info to default install
This commit is contained in:
+15
-2
@@ -21,10 +21,23 @@
|
||||
<testsuite name="core_lib">
|
||||
<directory suffix="_test.php">lib/tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<testsuite name="core_ajax">
|
||||
<directory suffix="_test.php">lib/ajax/tests</directory>
|
||||
</testsuite>
|
||||
<testsuite name="core_ddl">
|
||||
<directory suffix="_test.php">lib/ddl/tests</directory>
|
||||
</testsuite>
|
||||
<testsuite name="core_dml">
|
||||
<directory suffix="_test.php">lib/dml/tests</directory>
|
||||
</testsuite>
|
||||
<testsuite name="core_form">
|
||||
<directory suffix="_test.php">lib/form/tests</directory>
|
||||
</testsuite>
|
||||
|
||||
<!--Plugin suites: use admin/tool/phpunit/cli/util.php to build phpunit.xml from phpunit.xml.dist with up-to-date list of plugins in current install-->
|
||||
<!--Plugin suites: use admin/tool/phpunit/cli/util.php to build phpunit.xml from phpunit.xml.dist with up-to-date list of plugins in current install-->
|
||||
<!--@plugin_suites_start@-->
|
||||
<!--@plugin_suites_end@-->
|
||||
|
||||
</testsuites>
|
||||
|
||||
</phpunit>
|
||||
|
||||
Reference in New Issue
Block a user