1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/create-a-using-helper-in-pest.md
2021-08-27 18:37:33 +02:00

503 B

title tweet_id thread_slug author_username images created_at slug
Another pest tip: Create a using() helper to get perfect IDE support on $this calls inside your tests 1426219050250772482 Pest Tips archtechx
https://pbs.twimg.com/media/E8ryqTuWEAQT-1H.jpg
2021-08-16T19:07:26+02:00 create-a-using-helper-in-pest

Out of the box, @pestphp has amazing IDE support for the expect()->toBe() syntax, but sometimes you need to use $this — usually for things like HTTP calls.