summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-11 10:05:26 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-11 13:59:19 +0100
commit95a751865381be61943056b5fccdf7c222462227 (patch)
tree1a27756f34f2fdd2e06e8f3c4c6ded63d1684741 /build
parent985b11876f8acb2aaacf55e1b4c7f6b71a0a2e1f (diff)
downloadnextcloud-server-95a751865381be61943056b5fccdf7c222462227.tar.gz
nextcloud-server-95a751865381be61943056b5fccdf7c222462227.zip
Remove hardcoded api versions
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/Sharing.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/integration/features/bootstrap/Sharing.php b/build/integration/features/bootstrap/Sharing.php
index 8e6eea6be5a..13f95893934 100644
--- a/build/integration/features/bootstrap/Sharing.php
+++ b/build/integration/features/bootstrap/Sharing.php
@@ -26,7 +26,7 @@ trait Sharing{
* @param \Behat\Gherkin\Node\TableNode|null $body
*/
public function asCreatingAShareWith($user, $body) {
- $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/apps/files_sharing/api/v1/shares";
+ $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/apps/files_sharing/api/v{$this->sharingApiVersion}/shares";
$client = new Client();
$options = [];
if ($user === 'admin') {
@@ -402,7 +402,7 @@ trait Sharing{
* @Then As :user remove all shares from the file named :fileName
*/
public function asRemoveAllSharesFromTheFileNamed($user, $fileName) {
- $url = $this->baseUrl.'v2.php/apps/files_sharing/api/v1/shares?format=json';
+ $url = $this->baseUrl . "v{$this->apiVersion}.php/apps/files_sharing/api/v{$this->sharingApiVersion}/shares?format=json";
$client = new \GuzzleHttp\Client();
$res = $client->get(
$url,
@@ -422,7 +422,7 @@ trait Sharing{
if (stripslashes($data['path']) === $fileName) {
$id = $data['id'];
$client->delete(
- $this->baseUrl.'v2.php/apps/files_sharing/api/v1/shares/'.$id,
+ $this->baseUrl . "v{$this->apiVersion}.php/apps/files_sharing/api/v{$this->sharingApiVersion}/shares/{$id}",
[
'auth' => [
$user,