Draft: Refactor tests to use stubs instead of mocks where mocks do not configure expectations

Closes #3561671

Merge request reports

Loading