Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test coverage from local plugin emits deprecation warnings #440

Open
stopfstedt opened this issue Nov 20, 2024 · 0 comments
Open

test coverage from local plugin emits deprecation warnings #440

stopfstedt opened this issue Nov 20, 2024 · 0 comments

Comments

@stopfstedt
Copy link
Contributor

i'm seeing several deprecation warnings when running tests on the local plugin.

stefan@nichtsnutz: ~/dev/projects/moodle44 on MOODLE_404_STABLE[?]
$ vendor/bin/phpunit --group=local_kaltura
Moodle 4.4.4+ (Build: 20241115), 63205f03bb97aa410e751dc6b46c969ca23ee962
Php: 8.3.13, mysqli: 8.0.40, OS: Linux 6.8.0-48-generic x86_64

................................................W....WW.......... 65 / 80 ( 81%)
.......W.......                                                   80 / 80 (100%)

Time: 01:00.719, Memory: 346.00 MB

There were 4 warnings:

1) local_kaltura_locallib_testcase::test_local_kaltura_format_lti_instance_object
assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10. Refactor your test to use assertObjectHasProperty() instead.

/home/stefan/dev/projects/moodle44/lib/phpunit/classes/advanced_testcase.php:76

2) local_kaltura_locallib_testcase::test_local_kaltura_log_data_logging_request_data
assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10. Refactor your test to use assertObjectHasProperty() instead.

/home/stefan/dev/projects/moodle44/lib/phpunit/classes/advanced_testcase.php:76

3) local_kaltura_locallib_testcase::test_local_kaltura_log_data_logging_response_data
assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10. Refactor your test to use assertObjectHasProperty() instead.

/home/stefan/dev/projects/moodle44/lib/phpunit/classes/advanced_testcase.php:76

4) local_kaltura_migrationlib_testcase::test_initialization_of_config_values
assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10. Refactor your test to use assertObjectHasProperty() instead.

/home/stefan/dev/projects/moodle44/lib/phpunit/classes/advanced_testcase.php:76

WARNINGS!
Tests: 80, Assertions: 182, Warnings: 4.

for reference, please see https://tracker.moodle.org/browse/MDL-81281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant