Add a function mock for get_post