2012-04-04 20:26:58 +02:00
<?xml version="1.0" encoding="UTF-8"?>
2012-03-21 10:31:37 +01:00
<phpunit
2012-04-04 20:26:58 +02:00
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="lib/phpunit/phpunit.xsd"
2012-03-21 10:31:37 +01:00
bootstrap="lib/phpunit/bootstrap.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
backupGlobals="false"
backupStaticAttributes="false"
2020-09-15 16:03:05 +02:00
cacheResult="false"
2012-03-21 10:31:37 +01:00
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
2017-11-02 22:01:43 +01:00
beStrictAboutTestsThatDoNotTestAnything="false"
2018-03-20 08:08:29 +08:00
beStrictAboutOutputDuringTests="true"
2012-03-21 10:31:37 +01:00
>
2012-05-15 15:30:52 +02:00
<php>
<!--<const name="PHPUNIT_LONGTEST" value="1"/> uncomment to execute also slow or otherwise expensive tests-->
2014-10-06 17:31:15 +13:00
<const name="PHPUNIT_SEQUENCE_START" value=""/>
2013-09-24 21:11:10 +02:00
<!--Following constants instruct tests to fetch external test files from alternative location or skip tests if empty, clone https://github.com/moodlehq/moodle-exttests to local web server-->
<!--<const name="TEST_EXTERNAL_FILES_HTTP_URL" value="http://download.moodle.org/unittest"/> uncomment and alter to fetch external test files from alternative location-->
<!--<const name="TEST_EXTERNAL_FILES_HTTPS_URL" value="https://download.moodle.org/unittest"/> uncomment and alter to fetch external test files from alternative location-->
2012-05-15 15:30:52 +02:00
</php>
2012-03-22 10:45:17 +13:00
<!--All core suites need to be manually added here-->
2012-03-21 10:31:37 +01:00
<testsuites>
2014-05-27 09:43:52 +08:00
<testsuite name="core_phpunit_testsuite">
2012-05-12 21:11:53 +02:00
<directory suffix="_test.php">lib/phpunit/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_test_testsuite">
2013-01-10 14:43:26 +08:00
<directory suffix="_test.php">lib/testing/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_ddl_testsuite">
2012-04-07 01:17:46 +02:00
<directory suffix="_test.php">lib/ddl/tests</directory>
2013-08-04 22:09:30 +02:00
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_dml_testsuite">
2012-04-07 01:17:46 +02:00
<directory suffix="_test.php">lib/dml/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_testsuite">
2012-03-21 10:31:37 +01:00
<directory suffix="_test.php">lib/tests</directory>
2021-02-20 16:14:19 +01:00
<!-- <directory suffix="_test.php">lib/ajax/tests</directory> -->
2012-03-31 23:51:02 +02:00
</testsuite>
2018-09-10 09:18:28 +08:00
<testsuite name="core_favourites_testsuite">
<directory suffix="_test.php">favourites/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_form_testsuite">
2013-08-11 12:41:13 +02:00
<directory suffix="_test.php">lib/form/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_files_testsuite">
2012-04-25 11:25:56 +02:00
<directory suffix="_test.php">lib/filestorage/tests</directory>
2017-09-11 11:24:51 +08:00
<directory suffix="_test.php">lib/filebrowser/tests</directory>
2013-06-21 10:47:38 +08:00
<directory suffix="_test.php">files/tests</directory>
2012-04-25 11:25:56 +02:00
</testsuite>
2017-10-17 09:20:31 +08:00
<testsuite name="core_filter_testsuite">
<directory suffix="_test.php">filter/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_role_testsuite">
2013-06-17 11:27:42 +02:00
<directory suffix="_test.php">admin/roles/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_cohort_testsuite">
2012-09-16 20:17:16 +02:00
<directory suffix="_test.php">cohort/tests</directory>
</testsuite>
2019-10-09 09:34:45 +08:00
<testsuite name="core_grades_testsuite">
2012-04-08 11:30:44 +02:00
<directory suffix="_test.php">lib/grade/tests</directory>
<directory suffix="_test.php">grade/tests</directory>
<directory suffix="_test.php">grade/grading/tests</directory>
2014-09-19 10:04:17 +08:00
<directory suffix="_test.php">grade/import/csv/tests</directory>
2012-04-08 11:30:44 +02:00
</testsuite>
2017-06-02 19:10:45 +02:00
<testsuite name="core_analytics_testsuite">
<directory suffix="_test.php">analytics/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_availability_testsuite">
MDL-44070 Conditional availability enhancements (2): subsystem, API
This commit defines the new /availability root folder, with
/availability/classes, /availability/tests, and
/availability/condition where the condition plugins will live.
Condition plugin prefix is availability_, e.g. availability_date.
Rationale for this organisation:
1. I was originally going to put this in /lib/availability but
it has been pointed out that putting even more junk in lib
is probably bad.
2. 'availability' and 'condition' are the two names used in code
to refer to this system ($CFG->enableavailability).
3. The prefix has to be short enough to allow database tables
(although in practice I assume that condition plugins will not
normally contain database tables).
The new API includes a Boolean tree structure that controls the
availability of an item.
AMOS BEGIN
CPY [availabilityconditions,core_condition],[restrictaccess,core_availability]
CPY [enableavailability,core_condition],[enableavailability,core_availability]
CPY [configenableavailability,core_condition],[enableavailability_desc,core_availability]
AMOS END
2014-03-26 12:02:30 +00:00
<directory suffix="_test.php">availability/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_backup_testsuite">
2012-04-02 21:50:07 +02:00
<directory suffix="_test.php">backup/controller/tests</directory>
<directory suffix="_test.php">backup/converter/moodle1/tests</directory>
MDL-44070 Conditional availability enhancements (2): subsystem, API
This commit defines the new /availability root folder, with
/availability/classes, /availability/tests, and
/availability/condition where the condition plugins will live.
Condition plugin prefix is availability_, e.g. availability_date.
Rationale for this organisation:
1. I was originally going to put this in /lib/availability but
it has been pointed out that putting even more junk in lib
is probably bad.
2. 'availability' and 'condition' are the two names used in code
to refer to this system ($CFG->enableavailability).
3. The prefix has to be short enough to allow database tables
(although in practice I assume that condition plugins will not
normally contain database tables).
The new API includes a Boolean tree structure that controls the
availability of an item.
AMOS BEGIN
CPY [availabilityconditions,core_condition],[restrictaccess,core_availability]
CPY [enableavailability,core_condition],[enableavailability,core_availability]
CPY [configenableavailability,core_condition],[enableavailability_desc,core_availability]
AMOS END
2014-03-26 12:02:30 +00:00
<directory suffix="_test.php">backup/moodle2/tests</directory>
2018-05-04 13:27:48 +08:00
<directory suffix="_test.php">backup/tests</directory>
2012-04-02 21:50:07 +02:00
<directory suffix="_test.php">backup/util</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_badges_testsuite">
2013-04-02 13:57:39 +13:00
<directory suffix="_test.php">badges/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_blog_testsuite">
2012-04-02 23:55:03 +02:00
<directory suffix="_test.php">blog/tests</directory>
</testsuite>
2019-01-11 11:36:40 +01:00
<testsuite name="core_customfield_testsuite">
<directory suffix="_test.php">customfield/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_iplookup_testsuite">
2012-05-12 14:25:01 +02:00
<directory suffix="_test.php">iplookup/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_course_testsuite">
2012-04-03 10:24:45 +02:00
<directory suffix="_test.php">course/tests</directory>
</testsuite>
2018-03-01 09:21:48 +08:00
<testsuite name="core_privacy_testsuite">
<directory suffix="_test.php">privacy/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_question_testsuite">
2012-04-09 00:24:57 +02:00
<directory suffix="_test.php">question/engine/tests</directory>
<directory suffix="_test.php">question/tests</directory>
<directory suffix="_test.php">question/type/tests</directory>
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">question/engine/upgrade/tests</directory>
2012-04-09 00:24:57 +02:00
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_cache_testsuite">
2012-09-10 15:28:32 +12:00
<directory suffix="_test.php">cache/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_calendar_testsuite">
2012-12-10 16:18:07 +08:00
<directory suffix="_test.php">calendar/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_enrol_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">enrol/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_group_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">group/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_external_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">lib/external/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_message_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">message/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_notes_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">notes/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_tag_testsuite">
2014-01-12 18:41:18 -08:00
<directory suffix="_test.php">tag/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_rating_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">rating/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_repository_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">repository/tests</directory>
</testsuite>
2018-04-19 12:46:38 +08:00
<testsuite name="core_userkey_testsuite">
<directory suffix="_test.php">lib/userkey/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_user_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">user/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_webservice_testsuite">
2013-01-25 12:18:41 +08:00
<directory suffix="_test.php">webservice/tests</directory>
</testsuite>
2014-05-27 09:43:52 +08:00
<testsuite name="core_mnet_testsuite">
2014-01-20 11:22:27 +08:00
<directory suffix="_test.php">mnet/tests</directory>
</testsuite>
2015-03-24 11:00:27 +00:00
<testsuite name="core_completion_testsuite">
<directory suffix="_test.php">completion/tests</directory>
</testsuite>
2015-03-16 12:31:05 +01:00
<testsuite name="core_comment_testsuite">
<directory suffix="_test.php">comment/tests</directory>
</testsuite>
2016-02-19 14:46:37 +08:00
<testsuite name="core_search_testsuite">
<directory suffix="_test.php">search/tests</directory>
</testsuite>
2016-04-05 12:55:05 +08:00
<testsuite name="core_competency_testsuite">
<directory suffix="_test.php">competency/tests</directory>
</testsuite>
2016-07-26 04:35:02 +08:00
<testsuite name="core_my_testsuite">
<directory suffix="_test.php">my/tests</directory>
</testsuite>
2016-10-05 10:00:21 +08:00
<testsuite name="core_auth_testsuite">
<directory suffix="_test.php">auth/tests</directory>
</testsuite>
2015-07-31 17:16:45 +02:00
<testsuite name="core_block_testsuite">
<directory suffix="_test.php">blocks/tests</directory>
</testsuite>
2017-07-05 12:39:18 +08:00
<testsuite name="core_login_testsuite">
<directory suffix="_test.php">login/tests</directory>
</testsuite>
2018-04-04 01:04:54 +02:00
<testsuite name="core_plagiarism_testsuite">
<directory suffix="_test.php">plagiarism/tests</directory>
</testsuite>
2018-04-17 14:39:56 +08:00
<testsuite name="core_portfolio_testsuite">
<directory suffix="_test.php">portfolio/tests</directory>
</testsuite>
2018-04-16 16:36:42 +02:00
<testsuite name="core_editor_testsuite">
<directory suffix="_test.php">lib/editor/tests</directory>
</testsuite>
2018-04-18 17:34:19 +02:00
<testsuite name="core_rss_testsuite">
<directory suffix="_test.php">rss/tests</directory>
</testsuite>
2020-02-18 07:47:42 +08:00
<testsuite name="core_table_testsuite">
<directory suffix="_test.php">lib/table/tests</directory>
</testsuite>
2019-10-04 10:07:48 +02:00
<testsuite name="core_h5p_testsuite">
<directory suffix="_test.php">h5p/tests</directory>
</testsuite>
2020-02-13 14:01:03 +01:00
<testsuite name="core_xapi_testsuite">
<directory suffix="_test.php">lib/xapi/tests</directory>
</testsuite>
2020-04-02 18:05:09 +02:00
<testsuite name="core_contentbank_testsuite">
<directory suffix="_test.php">contentbank/tests</directory>
</testsuite>
2012-03-21 10:31:37 +01:00
2012-03-31 23:51:02 +02:00
<!--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-->
2012-03-22 10:45:17 +13:00
<!--@plugin_suites_start@-->
<!--@plugin_suites_end@-->
2012-03-21 10:31:37 +01:00
2012-03-31 23:51:02 +02:00
</testsuites>
2018-09-14 09:46:44 +08:00
<filter>
<!--@filterlist@-->
</filter>
2012-03-31 23:51:02 +02:00
2012-03-21 10:31:37 +01:00
</phpunit>