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

CTP-4147 Fix calendar PHPUnit test #40

Closed
wants to merge 1 commit into from
Closed

Conversation

leonstr
Copy link
Contributor

@leonstr leonstr commented Dec 6, 2024

Populate $cmid in mod_coursework_generator->create_instance() as this is needed by core PHPUnit tests, for example, when calling course_delete_module(). Previously core test
core_calendar\container_test::test_delete_module_delete_events failed because $cmid was missing.

Populate $cmid in mod_coursework_generator->create_instance() as this
is needed by core PHPUnit tests, for example, when calling
course_delete_module().  Previously core test
core_calendar\container_test::test_delete_module_delete_events failed
because $cmid was missing.
@leonstr leonstr self-assigned this Dec 6, 2024
@aspark21
Copy link
Collaborator

aspark21 commented Dec 6, 2024

Seems like this change breaks a different unit test
mod_coursework_models_deadline_extension_test::test_get_coursework

@leonstr
Copy link
Contributor Author

leonstr commented Dec 6, 2024

Seems like this change breaks a different unit test mod_coursework_models_deadline_extension_test::test_get_coursework

It looks like vendor/bin/phpunit --filter mod_coursework doesn't actually run all the mod_coursework PHPUnit tests so I missed this. OK, back to the drawing board for this issue.

@leonstr leonstr closed this Dec 13, 2024
@leonstr leonstr deleted the CTP-4147-populatecmid branch December 13, 2024 15:50
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

Successfully merging this pull request may close these issues.

2 participants