Skip to content

Default setting issue #47

@TomoTsuyuki

Description

@TomoTsuyuki

I ran phpunit test from Moodle, and got an error below:

1) core\adminlib_test::test_admin_apply_default_settings
Failed asserting that two arrays are identical.
--- Expected
+++ Actual
@@ @@
-Array &0 ()
+Array &0 (
+    'format_designer/heroactivity' => ''
+)

Default value of format_designer/heroactivity should be 0 or something, which is defined in values in the list.

    $tabs = [
        0 => get_string('disabled', 'format_designer'),
        1 => get_string('everywhere', 'format_designer'),
        2 => get_string('onlycoursepage', 'format_designer'),
    ];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions