summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2015-11-20 09:17:48 +0000
committerSergio Bertolin <sbertolin@solidgear.es>2015-11-20 09:17:48 +0000
commitdd10e1d538e91bdebad0c250a62d06afe9d74b55 (patch)
treea801b50c6ecf3584e7ccec25d59b9c0dcaa646d2 /build
parentee4a18a16cd964338b417b0a312a6a67c54e7f53 (diff)
downloadnextcloud-server-dd10e1d538e91bdebad0c250a62d06afe9d74b55.tar.gz
nextcloud-server-dd10e1d538e91bdebad0c250a62d06afe9d74b55.zip
modified makedavrequest to return response
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/FeatureContext.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php
index 329b18d151c..3a4b619fe7a 100644
--- a/build/integration/features/bootstrap/FeatureContext.php
+++ b/build/integration/features/bootstrap/FeatureContext.php
@@ -918,7 +918,8 @@ class FeatureContext implements Context, SnippetAcceptingContext {
foreach ($headers as $key => $value) {
$request->addHeader($key, $value);
}
- $this->response = $client->send($request);
+ //$this->response = $client->send($request);
+ return $client->send($request);
}
/**
@@ -927,7 +928,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
public function userMovedFile($user, $fileSource, $fileDestination){
$fullUrl = substr($this->baseUrl, 0, -4) . "remote.php/webdav";
$headers['Destination'] = $fullUrl . $fileDestination;
- $this->makeDavRequest($user, "MOVE", $fileSource, $headers);
+ $this->response = $this->makeDavRequest($user, "MOVE", $fileSource, $headers);
PHPUnit_Framework_Assert::assertEquals(201, $this->response->getStatusCode());
}
@@ -937,7 +938,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
public function userMovesFile($user, $fileSource, $fileDestination){
$fullUrl = substr($this->baseUrl, 0, -4) . "remote.php/webdav";
$headers['Destination'] = $fullUrl . $fileDestination;
- $this->makeDavRequest($user, "MOVE", $fileSource, $headers);
+ $this->response = $this->makeDavRequest($user, "MOVE", $fileSource, $headers);
}
/**