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

MNT Fix unit test #11474

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Nov 24, 2024

Issue #11473

MockResponse implements PSR ResponseInterface with extends MessageInterface

Those interfaces are both loosely typed, though their docblocks define expected return types

This line is what's trigger the issue, it's expecting a string, though our mock response was return null. I've updated the mock response to return the expected types

@emteknetnz emteknetnz marked this pull request as ready for review November 24, 2024 21:22
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GuySartorelli GuySartorelli merged commit 61244b7 into silverstripe:5.3 Nov 24, 2024
19 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5.3/fix-embed-test branch November 24, 2024 21:56
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.

2 participants