Skip to content

Commit 5fb434b

Browse files
Update REST.php
As promised at Codeception/lib-innerbrowser#15 (comment) :-)
1 parent b62f4f1 commit 5fb434b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Codeception/Module/REST.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,12 @@ public function amAWSAuthenticated($additionalAWSConfig = [])
430430
* 'tmp_name' => codecept_data_dir('sample_file.pdf')
431431
* ]
432432
* ]);
433+
* // Some frameworks (e.g. Symfony) create field names in the form of an "array": `<input type="text" name="form[task]">`
434+
* // In this case you need to pass the fields like this:
435+
* $I->sendPOST('/add-task', ['form' => [
436+
* 'task' => 'lorem ipsum',
437+
* 'category' => 'miscellaneous',
438+
* ]]);
433439
* ```
434440
*
435441
* @param $url

0 commit comments

Comments
 (0)