mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
d3db4b037c
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
141 lines
6.2 KiB
XML
141 lines
6.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="lib/phpunit/phpunit.xsd"
|
|
bootstrap="lib/phpunit/bootstrap.php"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
processIsolation="false"
|
|
backupGlobals="false"
|
|
backupStaticAttributes="false"
|
|
stopOnError="false"
|
|
stopOnFailure="false"
|
|
stopOnIncomplete="false"
|
|
stopOnSkipped="false"
|
|
strict="false"
|
|
printerClass="Hint_ResultPrinter"
|
|
testSuiteLoaderClass="phpunit_autoloader"
|
|
>
|
|
|
|
<php>
|
|
<!--<const name="PHPUNIT_LONGTEST" value="1"/> uncomment to execute also slow or otherwise expensive tests-->
|
|
|
|
<!--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-->
|
|
</php>
|
|
|
|
<!--All core suites need to be manually added here-->
|
|
|
|
<testsuites>
|
|
<testsuite name="core_phpunit">
|
|
<directory suffix="_test.php">lib/phpunit/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_test">
|
|
<directory suffix="_test.php">lib/testing/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">
|
|
<directory suffix="_test.php">lib/tests</directory>
|
|
<directory suffix="_test.php">lib/ajax/tests</directory>
|
|
<directory>lib/password_compat/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_form">
|
|
<directory suffix="_test.php">lib/form/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_files">
|
|
<directory suffix="_test.php">lib/filestorage/tests</directory>
|
|
<directory suffix="_test.php">files/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_role">
|
|
<directory suffix="_test.php">admin/roles/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_cohort">
|
|
<directory suffix="_test.php">cohort/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_grade">
|
|
<directory suffix="_test.php">lib/grade/tests</directory>
|
|
<directory suffix="_test.php">grade/tests</directory>
|
|
<directory suffix="_test.php">grade/grading/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_availability">
|
|
<directory suffix="_test.php">availability/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_backup">
|
|
<directory suffix="_test.php">backup/controller/tests</directory>
|
|
<directory suffix="_test.php">backup/converter/moodle1/tests</directory>
|
|
<directory suffix="_test.php">backup/moodle2/tests</directory>
|
|
<directory suffix="_test.php">backup/util</directory>
|
|
</testsuite>
|
|
<testsuite name="core_badges">
|
|
<directory suffix="_test.php">badges/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_blog">
|
|
<directory suffix="_test.php">blog/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_iplookup">
|
|
<directory suffix="_test.php">iplookup/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_course">
|
|
<directory suffix="_test.php">course/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_question">
|
|
<directory suffix="_test.php">question/engine/tests</directory>
|
|
<directory suffix="_test.php">question/tests</directory>
|
|
<directory suffix="_test.php">question/type/tests</directory>
|
|
<directory suffix="_test.php">question/engine/upgrade/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_cache">
|
|
<directory suffix="_test.php">cache/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_calendar">
|
|
<directory suffix="_test.php">calendar/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_enrol">
|
|
<directory suffix="_test.php">enrol/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_group">
|
|
<directory suffix="_test.php">group/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_external">
|
|
<directory suffix="_test.php">lib/external/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_message">
|
|
<directory suffix="_test.php">message/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_notes">
|
|
<directory suffix="_test.php">notes/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_tag">
|
|
<directory suffix="_test.php">tag/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_rating">
|
|
<directory suffix="_test.php">rating/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_repository">
|
|
<directory suffix="_test.php">repository/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_user">
|
|
<directory suffix="_test.php">user/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_webservice">
|
|
<directory suffix="_test.php">webservice/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="core_mnet">
|
|
<directory suffix="_test.php">mnet/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_start@-->
|
|
<!--@plugin_suites_end@-->
|
|
|
|
</testsuites>
|
|
|
|
</phpunit>
|