Pest sounds like a great name. I'm therefore actively adopting this for testing only because I love the name.
@GaryClarkeTech Жыл бұрын
That's valid
@philnyaga2396 Жыл бұрын
Great content, Gary. Followed it to the end. New subscriber, both here and in your website. Looking forward to the rest of the course
@GaryClarkeTech Жыл бұрын
Awesome, thank you!
@tzalejo827 ай бұрын
Excelente video!
@dgloria5 ай бұрын
Hi, I've heard it's best to write a validation that collects all errors into an array and so your test should receive an empty payload and return all the validation errors instead of writing ten tests for the same api endpoint. Can you show an example how to build such an error array please? Thanks
@GaryClarkeTech5 ай бұрын
You might be talking about data providers / datasets? I cover datasets in the full course at some point
@dgloria5 ай бұрын
I've lost it half way. Why do we create App/Http/Response? I seem to remember it exists in Laravel somewhere. All controllers use it. Hit me if I'm asking a dumb thing 😅😅
@GaryClarkeTech5 ай бұрын
It encapsulates the response and all the data relating to it (code, content, headers) so that it can be operating upon easily.
@dgloria5 ай бұрын
@@GaryClarkeTech Ah, I see now, you don't use any framework! So if I use this on a laravel app, can I use use Illuminate\Http\Request; instead of writing one? Thanks!
@GaryClarkeTech5 ай бұрын
Yes, you can use that if you're using Laravel. A lot of this stuff is already done for you if you use Laravel.