MDL-66022 core: subplugins.php moved to json
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 2 Jul 2019 05:55:12 +0000 (15:55 +1000)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 2 Jul 2019 05:55:12 +0000 (15:55 +1000)
lib/tests/component_test.php

index da3d8a8..bb026b2 100644 (file)
@@ -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'));