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:
co-authored by
Marina Glancy
parent
f30110b5eb
commit
4807a4dd5f
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user