Skip to content

CTP-5320 mail not sent - #1

Open
opitz wants to merge 12 commits into
leonstr:101-phpuniterrorsfrom
ucl-isd:CTP-5320-mail-not-sent
Open

CTP-5320 mail not sent#1
opitz wants to merge 12 commits into
leonstr:101-phpuniterrorsfrom
ucl-isd:CTP-5320-mail-not-sent

Conversation

@opitz

@opitz opitz commented Oct 23, 2025

Copy link
Copy Markdown

Trying to send a message to a null user fails.
I amended the query to only process messages where the user_id is not null.

@aspark21

Copy link
Copy Markdown

don't merge as this branch is for PR lsuonline#102 and we already have a PR for this other issue. I'll use the ucl-isd branch for the build

opitz and others added 12 commits October 30, 2025 11:21
Replace calls to update_system_config_value() with the core set_config()
function as the former did not invalidate the cache when setting values
resulting in changed values not taking effect.
Migrate from deprecated assertObjectHasAttribute() to
assertObjectHasProperty().
Previously PHPUnit tests used '1' for course and user IDs when creating
message objects.  But commit a382639 updated
block_quickmail\persistents\message->get_message_recipients() adding a
check that recipients are enrolled on the course, so bogus values no
longer work for tests that result in this method being called.  So where
necessary we use the data generator to create test users and enrol them
on courses.
- revoked my previous changes
- included PR lsuonline#110
@opitz
opitz force-pushed the CTP-5320-mail-not-sent branch from c529a75 to d8359f5 Compare November 14, 2025 12:14
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.

4 participants