摘要: 在 Laravel 编写单元测试时经常会遇到需要模拟认证用户的时候,比如新建文章、创建订单等,那么在 Laravel unit test 中如何来实现呢? 官方解决方法 Laravel 的官方文档中的测试章节中有提到: Of course, one common use of the session 阅读全文
posted @ 2018-12-11 22:35 果酱社区 阅读(816) 评论(0) 推荐(0) 编辑