It's because of set_message() which calls generate_text_for_storage()
`PHP Fatal error:  Call to a member function trigger_event() on a non-object in
/home/travis/build/phpbb/phpBB/includes/functions_content.php on line 513`

We mock the dispatcher in the entity base setUp() to deal with the same issue.