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

[2.x] Add CSRF token handling for toMatchSnapshot #48

Conversation

gehrisandro
Copy link

@gehrisandro gehrisandro commented Sep 7, 2023

Q A
Bug fix? no
New feature? yes
Fixed tickets pestphp/pest#946

This PR moves the logic how to handle the TestResponse within the toMatchSnapshot from the core to this plugin and registers a macro the filter CSRF tokens from the string before performing the match.

This PR depends on pestphp/pest#954

@nunomaduro
Copy link
Member

Can you pull request this against 3.x? Thanks!

@nunomaduro nunomaduro closed this Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants