task: #3574197 Convert all hooks to OOP format and add tests

By: mably

Closes #3574197

Merge request reports

Loading