我已經爲Laravel安裝了黃昏,並且自開始以來所有測試都失敗了。而不是查看我想要的頁面,他們都返回一個404錯誤。Laravel黃昏更改URL
爲了找出URL測試試圖去的,而不是我想我建立一個自定義的404頁面的一個,並把它下面的代碼:
$_SERVER['REQUEST_URI']
現在測試返回,它試圖獲取URL,我發現它增加了一個「/會話」的URL,例如結束時,如果我嘗試檢查:
'http://localhost/', DesiredCapabilities::chrome()
測試返回
<p>The requested URL /session was not found on this server.</p>
如果我這樣設置的網址:
'http://localhost/fortest', DesiredCapabilities::chrome()
測試將返回:
<p>The requested URL /fortest/session was not found on this server.</p>
我不知道這有什麼用Laravel /黃昏或PHPUnit或Selenium。任何幫助讚賞。