[TASK] Fix incomplete mocking in ViewHelper test case