Skip to content

Replace deprecated setMethods with onlyMethods - #107

Merged
jay-oswald merged 2 commits into
MOODLE_404_STABLEfrom
MOODLE_404_STABLE-test-fix
Jun 3, 2026
Merged

Replace deprecated setMethods with onlyMethods#107
jay-oswald merged 2 commits into
MOODLE_404_STABLEfrom
MOODLE_404_STABLE-test-fix

Conversation

@djarran

@djarran djarran commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Description: Replace deprecated setMethods with onlyMethods. Test still runs successfully in Moodle 4.5:

root@2148dbd199be:/var/www/cat-moo# vendor/bin/phpunit admin/tool/emailutils/tests/suffix_test.php
Moodle 4.5.11+ (Build: 20260501), 38becfa44d6eaaf99250c36f3848b9d76e135a78
Php: 8.3.31, pgsql: 17.10 (Debian 17.10-1.pgdg13+1), OS: Linux 6.17.0-29-generic x86_64
PHPUnit 9.6.34 by Sebastian Bergmann and contributors.

.............                                                     13 / 13 (100%)

Time: 00:01.422, Memory: 48.00 MB

OK (13 tests, 13 assertions)

@djarran
djarran force-pushed the MOODLE_404_STABLE-test-fix branch from a7111f5 to bff47b2 Compare June 3, 2026 05:11
@jay-oswald
jay-oswald merged commit bff3705 into MOODLE_404_STABLE Jun 3, 2026
31 checks passed
@jay-oswald
jay-oswald deleted the MOODLE_404_STABLE-test-fix branch June 3, 2026 06:16
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.

2 participants