Skip to content

Use mocked object in another object. #401

Answered by asomers
BratSinot asked this question in Questions
Discussion options

You must be logged in to vote

Are you expecting your MockContext to call the MockClient::send method? It won't, because it's a mock Context and not a real one. Why are you mocking Context at all? I think you want to use a real Context object.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BratSinot
Comment options

Answer selected by BratSinot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants