quiz_editquizsetting: Replaces add_to_log() with event class, #11445

And add a Behat test.