MDL-43056 tool_uploadcourse: Add capability to upload courses from file

An entrypoint capability has been added that allows accessing the
upload tool. Further relevant capability checks are then performed
depending on the action being taken during the upload process.

Co-authored-by: Marina Glancy <[email protected]>
This commit is contained in:
David Woloszyn
2024-01-31 11:29:33 +11:00
co-authored by Marina Glancy
parent f30110b5eb
commit 4807a4dd5f
27 changed files with 717 additions and 53 deletions
@@ -35,6 +35,7 @@ class processor_test extends \advanced_testcase {
public function test_basic() {
global $DB;
$this->resetAfterTest(true);
$this->setAdminUser();
$content = array(
"shortname,fullname,summary",
@@ -134,6 +135,7 @@ class processor_test extends \advanced_testcase {
public function test_shortname_template() {
global $DB;
$this->resetAfterTest(true);
$this->setAdminUser();
$content = array(
"shortname,fullname,summary,idnumber",