diff --git a/testing.rst b/testing.rst index f361564ca03..90942582d54 100644 --- a/testing.rst +++ b/testing.rst @@ -792,6 +792,10 @@ their type:: // uploads a file $form['photo']->upload('/path/to/lucas.jpg'); + // In the case of a multiple file upload + $form['my_form[field][O]']->upload('/path/to/lucas.jpg'); + $form['my_form[field][1]']->upload('/path/to/lucas.jpg'); + .. tip:: If you purposefully want to select "invalid" select/radio values, see