mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-66022 core: subplugins.php moved to json
This commit is contained in:
parent
671313b32d
commit
7fdefd3184
@ -396,7 +396,7 @@ class core_component_testcase extends advanced_testcase {
|
||||
$this->assertNull(core_component::get_subtype_parent('mod'));
|
||||
|
||||
// Any plugin with more subtypes is ok here.
|
||||
$this->assertFileExists("$CFG->dirroot/mod/assign/db/subplugins.php");
|
||||
$this->assertFileExists("$CFG->dirroot/mod/assign/db/subplugins.json");
|
||||
$this->assertSame('mod_assign', core_component::get_subtype_parent('assignsubmission'));
|
||||
$this->assertSame('mod_assign', core_component::get_subtype_parent('assignfeedback'));
|
||||
$this->assertNull(core_component::get_subtype_parent('assignxxxxx'));
|
||||
@ -406,7 +406,7 @@ class core_component_testcase extends advanced_testcase {
|
||||
global $CFG;
|
||||
|
||||
// Any plugin with more subtypes is ok here.
|
||||
$this->assertFileExists("$CFG->dirroot/mod/assign/db/subplugins.php");
|
||||
$this->assertFileExists("$CFG->dirroot/mod/assign/db/subplugins.json");
|
||||
|
||||
$subplugins = core_component::get_subplugins('mod_assign');
|
||||
$this->assertSame(array('assignsubmission', 'assignfeedback'), array_keys($subplugins));
|
||||
@ -419,7 +419,7 @@ class core_component_testcase extends advanced_testcase {
|
||||
|
||||
// Any plugin without subtypes is ok here.
|
||||
$this->assertFileExists("$CFG->dirroot/mod/choice");
|
||||
$this->assertFileNotExists("$CFG->dirroot/mod/choice/db/subplugins.php");
|
||||
$this->assertFileNotExists("$CFG->dirroot/mod/choice/db/subplugins.json");
|
||||
|
||||
$this->assertNull(core_component::get_subplugins('mod_choice'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user