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

[6.x] Utilise illuminate/testing based on #122 #126

Merged
merged 3 commits into from
Feb 24, 2020

Conversation

crynobone
Copy link
Member

@crynobone crynobone commented Feb 23, 2020

Changelog note

All HTTP tests will now return an instance of Laravel\BrowserKitTesting\TestResponse instead of Illuminate\Http\Response. The advantage of having TestResponse is that you have access to every assertion available in Laravel HTTP Tests > Response Assertions.


This PR no longer add any breaking change. Old and new methods can be used.

Signed-off-by: Mior Muhammad Zaki crynobone@gmail.com

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1. I cannot find anything related to the original `PHPUnit\Framework\Assert::assertJson()`
2. This mainly aim to check if response is actually JSON.

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@taylorotwell taylorotwell merged commit f4860be into laravel:master Feb 24, 2020
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