moodle/blocks
Daniel Ziegenberg 87267da39d
MDL-81281 phpunit: assertObjectNotHasAttribute is deprecated
To be integrated as part of MDL-81266

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

So we replace all instances of assertObjectNotHasAttribute with
assertObjectNotHasProperty.

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:07 +01:00
..
accessreview MDL-75952 general: Since php81, refection->setAccessible() is no-op 2024-03-10 21:15:00 +01:00
activity_modules Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
activity_results MDL-65292 style: Fix all the function declaration ordering 2024-02-28 23:47:47 +01:00
admin_bookmarks MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
amd MDL-78324 core: Convert modals to use new static methods 2023-09-09 00:04:11 +08:00
badges MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
blog_menu MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
blog_recent MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
blog_tags MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
calendar_month Merge branch 'MDL-79007_main' of https://github.com/marxjohnson/moodle 2024-03-20 10:45:14 +08:00
calendar_upcoming Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
classes MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
comments MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
completionstatus MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
course_list MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
course_summary MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
feedback MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
globalsearch MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
glossary_random MDL-65292 style: Fix all the function declaration ordering 2024-02-28 23:47:47 +01:00
html MDL-65292 style: Fix all the function declaration ordering 2024-02-28 23:47:47 +01:00
login Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
lp MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
mentees MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
mnet_hosts MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
myoverview MDL-71734 lang: final removal of deprecated 400 strings. 2024-03-21 09:44:15 +00:00
myprofile MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
navigation MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
news_items MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
online_users MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
private_files MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
recent_activity MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
recentlyaccessedcourses MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
recentlyaccesseditems Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
rss_client MDL-65292 style: Fix all the function declaration ordering 2024-02-28 23:47:47 +01:00
search_forums MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
section_links Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
selfcompletion MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
settings MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
site_main_menu MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
social_activities MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
starredcourses MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
tag_flickr MDL-77255 block_tag_flickr: Update to match with the new API 2024-03-19 10:14:18 +07:00
tag_youtube MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
tags MDL-65292 style: Fix all the function declaration ordering 2024-02-28 23:47:47 +01:00
tests MDL-81281 phpunit: assertObjectNotHasAttribute is deprecated 2024-03-25 16:21:07 +01:00
timeline MDL-71734 lang: final removal of deprecated 400 strings. 2024-03-21 09:44:15 +00:00
edit_form.php MDL-74465 blocks: allow configuration in modal 2023-03-30 12:15:54 +01:00
index.html
moodleblock.class.php MDL-77350 blocks: Added class properties that are not declared 2023-05-16 00:33:20 +07:00
upgrade.txt MDL-74465 blocks: correct upgrade note version number. 2023-03-31 08:46:26 +01:00