moodle/message
Daniel Ziegenberg 08027e408c
MDL-81281 phpunit: assertObjectHasAttribute is deprecated
To be integrated as part of MDL-81266

When running PHPUnit 9.6 we get the following deprecation warnings:
"assertObjectHasAttribute() is deprecated and will be removed in PHPUnit
10. Refactor your test to use assertObjectHasProperty() instead."

So we replace all instances of assertObjectHasAttribute with
assertObjectHasProperty.

PHPUnit justifies the change with:
> PHPUnit currently refers to "fields" (see above) as "attributes". This
> is (or will become) confusing considering the introduction of
> attributes in PHP 8 and their support in PHPUnit.  PHPUnit will be
> changed to use the term "property" instead of "attribute" where "field"
> is meant.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-03-25 16:21:45 +01:00
..
amd MDL-80183 message: improve ARIA labelling of total/unread counts. 2024-02-22 15:53:00 +00:00
classes MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
output MDL-81281 phpunit: assertObjectHasAttribute is deprecated 2024-03-25 16:21:45 +01:00
templates Merge branch 'MDL-72923-master' of https://github.com/michael-milette/moodle 2024-03-18 16:56:54 +01:00
tests MDL-81281 phpunit: assertObjectHasAttribute is deprecated 2024-03-25 16:21:45 +01:00
edit.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
externallib.php MDL-72249 message: stricter cleaning of processor type parameter. 2023-10-04 01:24:20 +00:00
index.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
lib.php MDL-72249 message: stricter cleaning of processor type parameter. 2023-10-04 01:24:20 +00:00
module.js MDL-67853 message: Remove on/offline settings on message preferences 2022-01-27 15:22:15 +01:00
notificationpreferences.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
pendingcontactrequests.php MDL-65219 message: add message/pendingcontactrequests.php page back 2019-07-23 11:37:55 +08:00
renderer.php MDL-67853 message: Remove on/offline settings on message preferences 2022-01-27 15:22:15 +01:00
upgrade.txt MDL-69643 message: final removal of deprecated 310 methods. 2023-01-06 09:28:40 +00:00