moodle/mod/workshop
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
..
allocation MDL-75952 general: Since php81, refection->setAccessible() is no-op 2024-03-10 21:15:00 +01:00
amd MDL-77559 js: Rebuild all JS with Node 16 2023-03-09 09:53:19 +08:00
backup MDL-65292 style: Fix all the function declaration ordering 2024-02-28 23:47:47 +01:00
classes MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
db MDL-78496 core: Address phpcs issues with upgrade.php files 2023-11-19 21:20:53 +08:00
eval MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
form MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
lang/en MDL-61165 core: Final deprecation and removal of legacy cron. 2023-08-23 15:52:52 +08:00
pix NOBUG: Fixed SVG browser compatibility 2024-02-23 08:37:37 +07:00
templates MDL-73595 theme_boost: make tertiary nav more distinct 2022-02-28 13:07:52 +01:00
tests MDL-81281 phpunit: assertObjectHasAttribute is deprecated 2024-03-25 16:21:45 +01:00
aggregate.php
allocation.php MDL-73437 workshop: Use templates for actionbar 2022-01-10 16:06:47 +08:00
assessment.php MDL-65887 workshop: Recalculate + fill the 'Grade for assessment' column 2023-08-18 08:58:35 +02:00
editform.php MDL-72413 workshop: Use the common module for setting the header 2021-12-13 09:49:34 +08:00
editformpreview.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
exassessment.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
excompare.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
exsubmission.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
feedbackauthor_form.php
feedbackreviewer_form.php
fileinfolib.php
index.php
lib.php MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
locallib.php MDL-52805 core: Plugins with removed tests due to old events 2023-03-07 13:08:46 +08:00
mod_form.php MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:30:19 +02:00
renderer.php MDL-80082 mod_workshop: Output 'Nothing to display' as notification. 2024-02-19 15:10:32 +01:00
settings.php
styles.css MDL-80082 mod_workshop: Output 'Nothing to display' as notification. 2024-02-19 15:10:32 +01:00
submission.php MDL-73078 workshop: align 'Edit subm' 'Delete subm' 'Export this page' 2022-11-11 16:41:41 +01:00
submission_form.php MDL-60820 workshop: Allow teacher to specify submission types 2018-08-31 14:48:29 +02:00
switchphase.php MDL-75337 core: Single button - core changes 2023-01-24 06:01:35 +01:00
toolbox.php
upgrade.txt MDL-75877 workshop: Refactor outputs in view.php 2023-01-03 10:20:52 +07:00
version.php MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
view.php MDL-75877 workshop: Refactor outputs in view.php 2023-01-03 10:20:52 +07:00