Laravel auth测试没有可探测的用户
我是新手测试的新手,所以我想创建一个验证测试,但是在项目中,我不使用Laravel模型,但是由于很久以前的启动项目,我正在使用自己的Auth方法。 TestCase类具有Actingas方法,但我不使用它,因此我无法测试用户验证,甚至我不知道该如何测试面板?
我将用户电子邮件和密码与JSON发布,然后将用户重定向到AUTH页面。我只有laravel_session cookie。
我可以在Auth后使用Cookie进行测试吗?我如何访问cookie,我必须在标题中发送它?
I'm newbie on testing so I want to create a auth testing but in project I don't use laravel Models but I'm using own methods for auth because of started project too long ago. TestCase class has actingAs method but i don't use it so i can not test user auth and even more i don't know how can i test the panel ?
I post the user email and password with JSON and then user redirect to auth page. I have only laravel_session cookie.
Can I use the cookie for testing after auth ? How can I access the cookie and Do I have to send it with in header ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论