运行laravel黄昏测试时,获取表/视图存在错误

时间:2017-03-09 10:35:13

标签: php laravel phpunit laravel-dusk

我为laravel设置了宅基地环境。我正在使用最新版本的laravel(5.4)。每当我运行命令php artisan dusk时,我都会收到以下错误:

1) Tests\Browser\auth\LawyerRegisterTest::lawyer_can_register
Illuminate\Database\QueryException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'court_user' already exists (SQL: create table    `court_user` (`court_id` int not null, `user_id` int not null) default character set utf8 collate utf8_unicode_ci)

每次运行黄昏测试时,是否必须重置迁移?

0 个答案:

没有答案