API version needs to be on basic because we use it there
This commit is contained in:
parent
5f7502de6c
commit
62b77d8ed0
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
use Behat\Behat\Context\Context;
|
||||
use Behat\Behat\Context\SnippetAcceptingContext;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Message\ResponseInterface;
|
||||
|
||||
|
@ -17,6 +15,9 @@ trait BasicStructure {
|
|||
/** @var string */
|
||||
private $baseUrl = '';
|
||||
|
||||
/** @var int */
|
||||
private $apiVersion = 1;
|
||||
|
||||
/** @var ResponseInterface */
|
||||
private $response = null;
|
||||
|
||||
|
@ -51,6 +52,14 @@ trait BasicStructure {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^using api version "([^"]*)"$/
|
||||
* @param string $version
|
||||
*/
|
||||
public function usingApiVersion($version) {
|
||||
$this->apiVersion = $version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^As an "([^"]*)"$/
|
||||
*/
|
||||
|
@ -248,7 +257,6 @@ trait BasicStructure {
|
|||
mkdir("../../core/skeleton/PARENT/CHILD", 0777, true);
|
||||
}
|
||||
file_put_contents("../../core/skeleton/PARENT/CHILD/" . "child.txt", "ownCloud test text file\n");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -269,8 +277,6 @@ trait BasicStructure {
|
|||
if (is_dir("../../core/skeleton/PARENT")) {
|
||||
rmdir("../../core/skeleton/PARENT");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,13 +24,6 @@ trait Provisioning {
|
|||
/** @var array */
|
||||
private $createdGroups = [];
|
||||
|
||||
/**
|
||||
* @Given /^using api version "([^"]*)"$/
|
||||
*/
|
||||
public function usingApiVersion($version) {
|
||||
$this->apiVersion = $version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^user "([^"]*)" exists$/
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue