Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mock object with 2 and more methods #2068

Merged
merged 1 commit into from Sep 2, 2021

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Aug 31, 2021

When creating the mock method table for the first time, @{} was assigned into $mockState but on second method NoteProperty would be in $mockState. This lead to only one method being possible to mock, the second mock would throw, because we are indexing into NoteProperty directly, instead of into .Value on NoteProperty.

Fix #2067

@nohwnd nohwnd merged commit 61bdd18 into rel/5.3.x Sep 2, 2021
@nohwnd nohwnd deleted the mock-object-with-2-methods branch September 2, 2021 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant