0

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

ここでテストしたい動作を再現できません。友達の Google でアドバイスを見つけられませんでした。どうすればそれを行うことができますか?

4

0 に答える 0