modified makedavrequest to return response
This commit is contained in:
parent
ee4a18a16c
commit
dd10e1d538
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue