summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/CommentsContext.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-01 08:33:49 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-05 14:17:32 +0200
commitdd9f195afd242c3d6023e8b6afecb73a61a99d60 (patch)
treef3a728fc36447e90a7ca5af120a255dfe00a198e /build/integration/features/bootstrap/CommentsContext.php
parent0556e40d3e560695f4aee5f9ef194355f1573e0f (diff)
downloadnextcloud-server-dd9f195afd242c3d6023e8b6afecb73a61a99d60.tar.gz
nextcloud-server-dd9f195afd242c3d6023e8b6afecb73a61a99d60.zip
Add OCS-APIREQUEST header to intergration test calls
Diffstat (limited to 'build/integration/features/bootstrap/CommentsContext.php')
-rw-r--r--build/integration/features/bootstrap/CommentsContext.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/CommentsContext.php b/build/integration/features/bootstrap/CommentsContext.php
index 5c3b0edafac..1d1b47f9736 100644
--- a/build/integration/features/bootstrap/CommentsContext.php
+++ b/build/integration/features/bootstrap/CommentsContext.php
@@ -191,6 +191,9 @@ class CommentsContext implements \Behat\Behat\Context\Context {
$options['auth'] = [$user, '123456'];
$fd = $body->getRowsHash();
$options['body'] = $fd;
+ $options['headers'] = [
+ 'OCS-APIREQUEST' => 'true',
+ ];
$client->send($client->createRequest($verb, $this->baseUrl.'/ocs/v1.php/'.$url, $options));
}