Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-08-18 15:08:01 +0300
committerLukas Reschke <lukas@statuscode.ch>2017-08-18 15:08:01 +0300
commitf528e70df822e0b0ca8bd0445dd66a6d4efd7054 (patch)
tree213a915a5cb8256fd5a4a3c6dc6813bf0adb2b6e /tests
parent940bcd30a31771461e6fd14318f3cbb8f79ff362 (diff)
Accept text/html
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index 432803e9..2fe44f4b 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -98,7 +98,15 @@ class FeatureContext implements Context {
* @When I send a GET request to :url
*/
public function iSendAGetRequestTo($url) {
- $this->response = $this->client->request('GET', $url);
+ $this->response = $this->client->request(
+ 'GET',
+ $url,
+ [
+ 'headers' => [
+ 'Accept' => 'text/html',
+ ],
+ ]
+ );
}
/**