fortify v1.25.3でテストが失敗する ==== 直接の原因はここではなさそう。 https://github.com/laravel/fortify/releases/tag/v1.25.3 3年前にmigrationで`two_factor_confirmed_at`が増えてる。マイナーバージョンでの変更なので見逃しやすい。この時点では影響がなかった。 https://github.com/laravel/fortify/pull/358/files 3年以上前にJetstreamを使って作ったプロジェクトで3年前の変更に追従してない場合は1.25.3でテストが失敗するようになってるはず。 面倒な場合の修正方法。 手元のmigrationを最新のものと合わせる。 https://github.com/laravel/fortify/blob/1.x/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php 本番環境のDBには手動で`two_factor_confirmed_at`追加。 (厳密に対応するなら新しいmigrationを作る) UserFactoryのdefinition()にも一応`two_factor_confirmed_at`追加。 ```php 'two_factor_confirmed_at' => null, ```` これでテストは失敗しなくなる。