diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-12 10:46:33 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-14 18:34:07 +0200 |
commit | 77542817d1bfb260c4bff74f77b9507b699f1d76 (patch) | |
tree | 94dc9ff0b94878222390bf47b88f1782df22970a /build/integration/features/bootstrap/BasicStructure.php | |
parent | 092b767ef998a6afe2e01eb34aef1f8d21f6ec69 (diff) | |
download | nextcloud-server-77542817d1bfb260c4bff74f77b9507b699f1d76.tar.gz nextcloud-server-77542817d1bfb260c4bff74f77b9507b699f1d76.zip |
Fix intergration tests
* Set OCS-APIREQUEST: true
* PUT requires a body
Diffstat (limited to 'build/integration/features/bootstrap/BasicStructure.php')
-rw-r--r-- | build/integration/features/bootstrap/BasicStructure.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php index 0b0e5998c4b..e9e20c047aa 100644 --- a/build/integration/features/bootstrap/BasicStructure.php +++ b/build/integration/features/bootstrap/BasicStructure.php @@ -165,6 +165,13 @@ trait BasicStructure { $options['body'] = $fd; } + // TODO: Fix this hack! + if ($verb === 'PUT' && $body === null) { + $options['body'] = [ + 'foo' => 'bar', + ]; + } + try { $this->response = $client->send($client->createRequest($verb, $fullUrl, $options)); } catch (\GuzzleHttp\Exception\ClientException $ex) { |