diff --git a/UPGRADING.md b/UPGRADING.md index b0fe390d5c7..5e3bec894fc 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -6,6 +6,35 @@ More detailed information on key changes can be found in the [Developer update n The format of this change log follows the advice given at [Keep a CHANGELOG](https://keepachangelog.com). +## 4.5.3+ + +### core + +#### Added + +- Behat now supports email content verification using Mailpit. + You can check the contents of an email using the step `Then the email to "user@example.com" with subject containing "subject" should contain "content".` + To use this feature: + 1. Ensure that Mailpit is running + 2. Define the following constants in your `config.php`: + - `TEST_EMAILCATCHER_MAIL_SERVER` - The Mailpit server address (e.g. `0.0.0.0:1025`) + - `TEST_EMAILCATCHER_API_SERVER` - The Mailpit API server (qe.g. `http://localhost:8025`) + + 3. Ensure that the email catcher is set up using the step `Given an email catcher server is configured`. + + For more information see [MDL-75971](https://tracker.moodle.org/browse/MDL-75971) +- A new method, `core_text::trim_ctrl_chars()`, has been introduced to clean control characters from text. This ensures cleaner input handling and prevents issues caused by invisible or non-printable characters + + For more information see [MDL-84907](https://tracker.moodle.org/browse/MDL-84907) + +### core_files + +#### Added + +- A new function `file_clear_draft_area()` has been added to delete the files in a draft area. + + For more information see [MDL-72050](https://tracker.moodle.org/browse/MDL-72050) + ## 4.5.3 ### core_question diff --git a/files/UPGRADING.md b/files/UPGRADING.md index 5cfe9dc60d5..f9825604860 100644 --- a/files/UPGRADING.md +++ b/files/UPGRADING.md @@ -1,5 +1,13 @@ # core_files (subsystem) Upgrade notes +## 4.5.3+ + +### Added + +- A new function `file_clear_draft_area()` has been added to delete the files in a draft area. + + For more information see [MDL-72050](https://tracker.moodle.org/browse/MDL-72050) + ## 4.5 ### Added diff --git a/lib/UPGRADING.md b/lib/UPGRADING.md index 3afd9bfaa27..45ec0f6866c 100644 --- a/lib/UPGRADING.md +++ b/lib/UPGRADING.md @@ -1,5 +1,24 @@ # core (subsystem) Upgrade notes +## 4.5.3+ + +### Added + +- Behat now supports email content verification using Mailpit. + You can check the contents of an email using the step `Then the email to "user@example.com" with subject containing "subject" should contain "content".` + To use this feature: + 1. Ensure that Mailpit is running + 2. Define the following constants in your `config.php`: + - `TEST_EMAILCATCHER_MAIL_SERVER` - The Mailpit server address (e.g. `0.0.0.0:1025`) + - `TEST_EMAILCATCHER_API_SERVER` - The Mailpit API server (qe.g. `http://localhost:8025`) + + 3. Ensure that the email catcher is set up using the step `Given an email catcher server is configured`. + + For more information see [MDL-75971](https://tracker.moodle.org/browse/MDL-75971) +- A new method, `core_text::trim_ctrl_chars()`, has been introduced to clean control characters from text. This ensures cleaner input handling and prevents issues caused by invisible or non-printable characters + + For more information see [MDL-84907](https://tracker.moodle.org/browse/MDL-84907) + ## 4.5.2 ### Added