Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 29... Línea 29...
29
 * @package     core
29
 * @package     core
30
 * @covers      \core_admin\external\set_plugin_state
30
 * @covers      \core_admin\external\set_plugin_state
31
 * @copyright   2023 Andrew Lyons <andrew@nicols.co.uk>
31
 * @copyright   2023 Andrew Lyons <andrew@nicols.co.uk>
32
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 */
33
 */
34
class set_plugin_state_test extends \externallib_advanced_testcase {
34
final class set_plugin_state_test extends \externallib_advanced_testcase {
35
    /**
35
    /**
36
     * Text execute method.
36
     * Text execute method.
37
     *
37
     *
38
     * @dataProvider execute_standard_provider
38
     * @dataProvider execute_standard_provider
39
     * @param string $plugin The name of the plugin
39
     * @param string $plugin The name of the plugin
Línea 64... Línea 64...
64
    /**
64
    /**
65
     * Data provider for base tests of the execute method.
65
     * Data provider for base tests of the execute method.
66
     *
66
     *
67
     * @return array
67
     * @return array
68
     */
68
     */
69
    public function execute_standard_provider(): array {
69
    public static function execute_standard_provider(): array {
70
        $generatetestsfor = function (string $plugin): array {
70
        $generatetestsfor = function (string $plugin): array {
71
            return [
71
            return [
72
                [
72
                [
73
                    'plugin' => $plugin,
73
                    'plugin' => $plugin,
74
                    'initialstate' => null,
74
                    'initialstate' => null,