diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 2d09354..526c601 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -22,12 +22,12 @@ jobs: include: - php: '8.0' moodle-branch: 'MOODLE_401_STABLE' - - php: '8.0' - moodle-branch: 'MOODLE_402_STABLE' - php: '8.1' moodle-branch: 'MOODLE_403_STABLE' - php: '8.2' moodle-branch: 'MOODLE_404_STABLE' + - php: '8.3' + moodle-branch: 'MOODLE_405_STABLE' steps: - name: Check out repository code @@ -61,6 +61,10 @@ jobs: if: ${{ !cancelled() }} run: moodle-plugin-ci phpcs --max-warnings 0 + - name: PHPDoc checker + if: ${{ !cancelled() }} + run: moodle-plugin-ci phpdoc --max-warnings 0 + - name: Grunt if: ${{ !cancelled() }} run: moodle-plugin-ci grunt --max-lint-warnings 0 diff --git a/classes/event/definition_created.php b/classes/event/definition_created.php index 57bd007..83366b4 100644 --- a/classes/event/definition_created.php +++ b/classes/event/definition_created.php @@ -14,7 +14,6 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . - namespace local_cohortrole\event; use local_cohortrole\persistent; diff --git a/tests/behat/behat_local_cohortrole_data_generators.php b/tests/behat/behat_local_cohortrole_data_generators.php index c90cdf8..a80ae9f 100644 --- a/tests/behat/behat_local_cohortrole_data_generators.php +++ b/tests/behat/behat_local_cohortrole_data_generators.php @@ -14,7 +14,6 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . - require_once(__DIR__ . '/../../../../lib/behat/behat_base.php'); use Behat\Gherkin\Node\TableNode; diff --git a/tests/observers_test.php b/tests/observers_test.php index 0af79c5..7ae945b 100644 --- a/tests/observers_test.php +++ b/tests/observers_test.php @@ -39,6 +39,8 @@ final class observers_test extends advanced_testcase { public static function setUpBeforeClass(): void { global $CFG; + parent::setUpBeforeClass(); + require_once("{$CFG->dirroot}/cohort/lib.php"); } @@ -46,6 +48,8 @@ public static function setUpBeforeClass(): void { * Test setup */ protected function setUp(): void { + parent::setUp(); + $this->resetAfterTest(true); // Create test role/cohort. diff --git a/tests/privacy/provider_test.php b/tests/privacy/provider_test.php index 27ea5be..ad3a693 100644 --- a/tests/privacy/provider_test.php +++ b/tests/privacy/provider_test.php @@ -45,6 +45,8 @@ final class provider_test extends provider_testcase { * @return void */ protected function setUp(): void { + parent::setUp(); + $this->resetAfterTest(true); // Create test user. diff --git a/version.php b/version.php index 706dc01..3942251 100644 --- a/version.php +++ b/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'local_cohortrole'; -$plugin->release = '4.4'; -$plugin->version = 2024042200; +$plugin->release = '4.5'; +$plugin->version = 2024100800; $plugin->requires = 2022112800; // Moodle 4.1 onwards. $plugin->maturity = MATURITY_STABLE;