MDL-80599 core: Refactor enrol methods
commit4b16c37b9612032cfc8bed6bef438c098157aee7
authorIlya Tregubov <ilya.a.tregubov@gmail.com>
Mon, 5 Feb 2024 07:08:46 +0000 (5 15:08 +0800)
committerIlya Tregubov <ilya.a.tregubov@gmail.com>
Tue, 14 May 2024 04:08:46 +0000 (14 12:08 +0800)
tree91b41e47aaa47b2ab94f222d1479e2da829abb2c
parent89f3ecf3d30f903e874ae3ad7617c10c736db537
MDL-80599 core: Refactor enrol methods

Move update instance logic to its own method and cover with tests.
Also update enrol plugins to work woth new methods.
admin/tool/uploadcourse/classes/course.php
admin/tool/uploadcourse/tests/behat/cohorts.feature
enrol/cohort/lang/en/deprecated.txt [new file with mode: 0644]
enrol/cohort/lang/en/enrol_cohort.php
enrol/cohort/lib.php
enrol/meta/lib.php
enrol/tests/enrollib_test.php
lang/en/enrol.php
lib/enrollib.php
lib/moodlelib.php