也儘可能把設定都放在測試可控制的環境,不要跟主程式有牽扯。 定義測試用資料庫; 使用sqlite :memory: 來測試. 建立Article model :. $ php artisan make: ...
確定! 回上一頁