我想在Laravel 5.2和Codeception 2.1.6中附加几个文件来运行我的测试。
我有一个输入:
<input type="file" id="shapefiles" name="files[]" multiple>
当我尝试将一些文件附加到它时:
$I->attachFile('files[]', 'districts/shapefiles/admin2.dbf');
$I->attachFile('files[]', 'districts/shapefiles/admin2.shp');
我收到错误:
[TestRuntimeException] None of form fields by files[] were not matched
我无法重现我想在这里测试的行为。 我的朋友谷歌没有找到任何建议。我怎么能设法做到这一点?