Hi,
I would like to work on a patch for the following Moodle tracker item:
https://tracker.moodle.org/browse/MDL-50811
To do so, I want to write a unit test to ensure the fix is complete and works as expected. Unfortunately I'm not sure how to use PHPUnit to test inbound message handling.
From what I can see in the existing tests of the mod/forum plugin, outbound sending of messages is tested, but not inbound. Or I could just be missing something obvious.
Is there any documentation, or does anyone have any pointers, on writing unit tests for inbound message handlers?
With thanks.
-Corey