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

PHPUnit deprecated function expectErrorMessage #151

Open
sharpchi opened this issue Jan 24, 2025 · 0 comments
Open

PHPUnit deprecated function expectErrorMessage #151

sharpchi opened this issue Jan 24, 2025 · 0 comments

Comments

@sharpchi
Copy link

Getting the following error when testing in Moodle 4.5

Oublog check view permissions personal restrict
   ┐
   ├ Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10.
   │
   ╵ /var/www/html/lib/phpunit/classes/advanced_testcase.php:76
   ┴

Looks like the following line is the culprit:

$this->expectErrorMessage('Sorry: you do not have access to view this page.');

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

No branches or pull requests

1 participant