moodle-mod_customcert
moodle-mod_customcert copied to clipboard
Add unit tests for issue_created, issue_deleted
Extending https://github.com/mdjnelson/moodle-mod_customcert/issues/675
We now have events for certificate issue, actions, and now we just need to add testing for them.
Work plan
- [ ] Rebase all branches in https://github.com/modern-training-solutions/moodle-mod_customcert on top of updated latest code in mdjnelson origin.
- [x] Check that we are not using the old event name (certificate_issued) in our production environment. (Good, we are not.)
- [ ] Implement unit tests in new work branch in https://github.com/modern-training-solutions/moodle-mod_customcert
- [ ] @fulldecent to make PR here.
Hi @Raza403 I am ready for this one so we can start loading certificates into CMS when students get their eCard.
Can you please discuss any questions so we can get this to READY status on our board?
Please see https://github.com/mdjnelson/moodle-mod_customcert/blob/MOODLE_500_STABLE/tests/event/events_test.php for how to write unit tests for events.
Rebase all branches in https://github.com/modern-training-solutions/moodle-mod_customcert on top of updated latest code in mdjnelson origin.
Rebased.
Sorry, is this related to creating unit tests? I don't see anything on that branch about unit tests. Also, please create a PR rather than linking to the branch as you have done before. :)
Can you please create unit tests for this please @Raza403?
@mdjnelson I am working on it, will make a PR next week.
Thanks, it's much appreciated.
Hi @mdjnelson the first step here is that our own fork of this project needs to rebase all work ontop of your latest version here.
This is an internal step for my team. No action or review is required from you on this step. It is strictly FYI as we are building in public.
We have not started adding unit tests. But when we do, it will be a branch living at https://github.com/modern-training-solutions/moodle-mod_customcert. And yes, when we have some progress I will indeed create a PR here.
Thanks @fulldecent.
PR made here.