Earlier quoted context omitted.
No that’s not a mock that’s a stub. See this book from software engineers at Google, it talks about various test doubles: https://abseil.io/resources/swe-book/html/ch13.html
Mocks are for objects, stubs are for responses and ‘fakes’ are basically the same thing as mocks.
For example, if your dependency is a distributed key-value store, a fake would expose the same API but using an in-memory hashmap under the hood.