[ticket/12273] Add unit tests to run event exporter for pull requests

https://tracker.phpbb.com/browse/PHPBB3-12273