命令行上运行 phpunit 测试出错
按照教程的顺序,第一步直接执行 phpunit,这时候出现了错误,
Expected status code 200 but received 500.
Failed asserting that false is true.
如图:
查看这俩个文件,并没有找到原因,如图:
有的同学说是因为 sudosu.php 文件配置问题
修改配置文件为
'allowed_tlds' => ['dev', 'local', 'test', 'localhost'],
但是没有起效,查询网上得知:因为开启了缓存
执行一下命令即可
php artisan config:cache
推荐文章: