diff options
-rw-r--r-- | build/integration/features/bootstrap/BasicStructure.php | 16 | ||||
-rw-r--r-- | build/integration/features/bootstrap/Provisioning.php | 7 |
2 files changed, 11 insertions, 12 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php index 0084597836f..47358d2ccfc 100644 --- a/build/integration/features/bootstrap/BasicStructure.php +++ b/build/integration/features/bootstrap/BasicStructure.php @@ -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; @@ -52,6 +53,14 @@ trait BasicStructure { } /** + * @Given /^using api version "([^"]*)"$/ + * @param string $version + */ + public function usingApiVersion($version) { + $this->apiVersion = $version; + } + + /** * @Given /^As an "([^"]*)"$/ */ public function asAn($user) { @@ -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"); } - - } } diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php index 6d710b2016f..a3359ac96d6 100644 --- a/build/integration/features/bootstrap/Provisioning.php +++ b/build/integration/features/bootstrap/Provisioning.php @@ -25,13 +25,6 @@ trait Provisioning { private $createdGroups = []; /** - * @Given /^using api version "([^"]*)"$/ - */ - public function usingApiVersion($version) { - $this->apiVersion = $version; - } - - /** * @Given /^user "([^"]*)" exists$/ */ public function assureUserExists($user) { |