Laravel Testing 09/24: Auth Test: Does user have access to the page?

preview_player
Показать описание

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

I learn new things everytime you upload new video sir thank you 😊

devMusic_
Автор

5:59 I would also use that const in the tests, in case it gets changed in the future.

rationalityfirst
Автор

what if i test the unauthanticated user cannot access products page in PoductsTest not in AuthTest

rawjlyelanat
Автор

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') ]))

sanmon
Автор

I always see in testing videos that routes are hardcoded. Is it bad practice to use named routes in tests, and if yes, why?

Denakino
Автор

is feature test considered as integration test?

ahmedkarm