MDL-40682 phpunit: Fix coding style issues
MDL40682 blogs: Replace legacy event and log triggers with events2
MDL40682 phpunit: Add unittests for \core_blog\event\entry_added()