Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11 Fix Unknown format passed to format_text: html #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leonstr
Copy link

@leonstr leonstr commented Jul 18, 2024

The test helper previously used 'html' for the format passed to format_text(). This expects a FORMAT_ constant but prior to Moodle 4.4 defaulted to FORMAT_MOODLE for unrecognised values. It now throws an exception for such values (MDL-80072). This change uses FORMAT_HTML instead.

With this change all PHPUnit tests now pass (OK (30 tests, 416 assertions)).

The test helper previously used 'html' for the format passed to
format_text().  This expects a FORMAT_ constant but prior to Moodle
4.4 defaulted to FORMAT_MOODLE for unrecognised values.  It now throws
an exception for such values (MDL-80072).  This change uses FORMAT_HTML
instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant