Mocking out view calls.