From 24a96b0449a7c261ecac18b435ba47220fc768e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Thu, 29 Aug 2024 23:00:21 +0200 Subject: [PATCH] Amend README.txt to reflect actual state. --- .github/workflows/ci.yml | 7 +++++-- README.txt | 6 ++++-- tests/custom_completion_test.php | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d97ce50b..206f0844 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: services: postgres: - image: postgres:13 + image: postgres:16 env: POSTGRES_USER: 'postgres' POSTGRES_HOST_AUTH_METHOD: 'trust' @@ -16,7 +16,7 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 mariadb: - image: mariadb:10 + image: mariadb:10.6 env: MYSQL_USER: 'root' MYSQL_ALLOW_EMPTY_PASSWORD: "true" @@ -33,6 +33,9 @@ jobs: - php: '8.3' moodle-branch: 'main' database: 'pgsql' + - php: '8.3' + moodle-branch: 'MOODLE_405_STABLE' + database: 'mariadb' - php: '8.2' moodle-branch: 'MOODLE_404_STABLE' database: 'pgsql' diff --git a/README.txt b/README.txt index 5a18c293..40402b83 100644 --- a/README.txt +++ b/README.txt @@ -5,9 +5,11 @@ survey tool. -------------------------------------------------------------------------------- Developers Note: -There is no main branch. Questionnaire is maintained in MOODLE_XX_STABLE +There is no main branch. Questionnaire is maintained in MOODLE_XXX_STABLE branches. Use the latest STABLE branch for development or installation. -The current stable branch is MOODLE_400_STABLE, and supports Moodle 4.0 and up. +The current stable branch is MOODLE_404_STABLE, and supports Moodle 4.4 and up. +Use the MOODLE_401_STABLE branch for Moodle 4.1 through 4.3. +Use the MOODLE_400_STABLE branch for Moodle 4.0. Use the MOODLE_311_STABLE branch for Moodle 3.9 through 3.11. -------------------------------------------------------------------------------- diff --git a/tests/custom_completion_test.php b/tests/custom_completion_test.php index e46ce656..c266b8a5 100644 --- a/tests/custom_completion_test.php +++ b/tests/custom_completion_test.php @@ -51,7 +51,7 @@ class custom_completion_test extends \advanced_testcase { * * @return array[] */ - public function get_state_provider(): array { + public static function get_state_provider(): array { return [ 'Undefined rule' => [ 'somenonexistentrule', COMPLETION_DISABLED, false, null, coding_exception::class @@ -178,7 +178,7 @@ public function test_is_defined() { * * @return array[] */ - public function get_available_custom_rules_provider(): array { + public static function get_available_custom_rules_provider(): array { return [ 'Completion submit available' => [ COMPLETION_ENABLED, ['completionsubmit']