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

Unit test fail if there is other plugin which implements pre_course_delete #229

Open
tuanngocnguyen opened this issue Oct 27, 2024 · 0 comments

Comments

@tuanngocnguyen
Copy link

If there is plugin implements pre_course_delete hook and trying to access the invalid course module, different error will be throw

  1. tool_lifecycle\process_error_test::test_process_error_in_table
    Failed asserting that 'moodle_exception: Invalid course module ID' contains "Trying to get property 'id' of non-object".

/var/www/site/admin/tool/lifecycle/tests/process_error_test.php:114
/var/www/site/lib/phpunit/classes/advanced_testcase.php:80
phpvfscomposer:///var/www/site/vendor/phpunit/phpunit/phpunit:60

To re-run:
vendor/bin/phpunit "tool_lifecycle\process_error_test" admin/tool/lifecycle/tests/process_error_test.php

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