|
|
|
|
@ -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"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|