moodle/question/bank
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
..
bulkmove MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
columnsortorder MDL-81281 phpunit: assertObjectHasAttribute is deprecated 2024-03-25 16:21:45 +01:00
comment MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
customfields MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
deletequestion MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
editquestion MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
exportquestions MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
exporttoxml MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
history Merge branch 'MDL-79551-master-rc' of https://github.com/junpataleta/moodle 2023-10-04 12:28:14 +02:00
importquestions MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
managecategories MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
previewquestion Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
statistics MDL-75952 general: Since php81, refection->setAccessible() is no-op 2024-03-10 21:15:00 +01:00
tagquestion Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
usage MDL-80079 core: Correct incorrect arg to format_string::$options 2023-11-14 22:28:55 +08:00
viewcreator MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
viewquestionname MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
viewquestiontext MDL-80537 question bank: escape plain text display of question text 2024-02-01 16:15:04 +00:00
viewquestiontype MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
upgrade.txt MDL-75125 core_question: Deprecate old action column classes 2023-06-02 11:42:02 +01:00