I learn new things everytime you upload new video sir thank you 😊
@rationalityfirst2 жыл бұрын
5:59 I would also use that const in the tests, in case it gets changed in the future.
@nam76343 ай бұрын
I do the same but i have the error exception CSRF token mismatch, why u dont have it ?
@rawjlye3lanat373 Жыл бұрын
what if i test the unauthanticated user cannot access products page in PoductsTest not in AuthTest
@LaravelDaily Жыл бұрын
No problem, it's your choice how to structure test files
@rdtandel2703Ай бұрын
How to do auth redirect in laravel 11?
@Denakino2 жыл бұрын
I always see in testing videos that routes are hardcoded. Is it bad practice to use named routes in tests, and if yes, why?
@LaravelDaily2 жыл бұрын
Not really, it's a personal preference, you can use either.
@ahmedkarm74582 жыл бұрын
is feature test considered as integration test?
@sanmon535 Жыл бұрын
Thanks for the videos, it really helps me! Why are you don't use factory User? It's most easily create fake data with factory and just pass the password through the create method (User::factory()->create([ password => bcrypt('123') ]))