Skip to content

Commit

Permalink
testUpdateSubmission: set AllowEdit for form
Browse files Browse the repository at this point in the history
Signed-off-by: Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
  • Loading branch information
tpokorra committed Jan 22, 2025
1 parent 79a8fd5 commit 230c05b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Integration/Api/ApiV3Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,14 @@ public function testNewSubmission() {
*/
public function testUpdateSubmission() {

$resp = $this->http->request('PATCH', "api/v3/forms/{$this->testForms[0]['id']}", [
'json' => [
'keyValuePairs' => [
'AllowEdit' => true,
]
]
]);

$uploadedFileResponse = $this->http->request('POST',
"api/v3/forms/{$this->testForms[0]['id']}/submissions/files/{$this->testForms[0]['questions'][2]['id']}",
[
Expand Down

0 comments on commit 230c05b

Please sign in to comment.