summaryrefslogtreecommitdiffstats
path: root/build/integration
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-11 10:37:21 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-11 13:59:19 +0100
commit0f214017d2d819cc54e7fc37c327e6f5c8dc2f2d (patch)
treec11de77563b62193f5fdd2dc5f03ab75210e560d /build/integration
parent6381c22a7dfb28fd0ff6e5df2c77491845e6a30d (diff)
downloadnextcloud-server-0f214017d2d819cc54e7fc37c327e6f5c8dc2f2d.tar.gz
nextcloud-server-0f214017d2d819cc54e7fc37c327e6f5c8dc2f2d.zip
Docs for BasicStructure
Diffstat (limited to 'build/integration')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index 47358d2ccfc..4ff7403bb16 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -62,6 +62,7 @@ trait BasicStructure {
/**
* @Given /^As an "([^"]*)"$/
+ * @param string $user
*/
public function asAn($user) {
$this->currentUser = $user;
@@ -69,6 +70,7 @@ trait BasicStructure {
/**
* @Given /^Using server "([^"]*)"$/
+ * @param string $server
*/
public function usingServer($server) {
if ($server === 'LOCAL'){
@@ -84,6 +86,8 @@ trait BasicStructure {
/**
* @When /^sending "([^"]*)" to "([^"]*)"$/
+ * @param string $verb
+ * @param string $url
*/
public function sendingTo($verb, $url) {
$this->sendingToWith($verb, $url, null);
@@ -101,6 +105,8 @@ trait BasicStructure {
/**
* This function is needed to use a vertical fashion in the gherkin tables.
+ * @param array $arrayOfArrays
+ * @return array
*/
public function simplifyArray($arrayOfArrays){
$a = array_map(function($subArray) { return $subArray[0]; }, $arrayOfArrays);
@@ -109,6 +115,9 @@ trait BasicStructure {
/**
* @When /^sending "([^"]*)" to "([^"]*)" with$/
+ * @param string $verb
+ * @param string $url
+ * @param \Behat\Gherkin\Node\TableNode $body
*/
public function sendingToWith($verb, $url, $body) {
$fullUrl = $this->baseUrl . "v{$this->apiVersion}.php" . $url;
@@ -139,6 +148,7 @@ trait BasicStructure {
/**
* @Then /^the OCS status code should be "([^"]*)"$/
+ * @param int $statusCode
*/
public function theOCSStatusCodeShouldBe($statusCode) {
PHPUnit_Framework_Assert::assertEquals($statusCode, $this->getOCSResponse($this->response));
@@ -146,6 +156,7 @@ trait BasicStructure {
/**
* @Then /^the HTTP status code should be "([^"]*)"$/
+ * @param int $statusCode
*/
public function theHTTPStatusCodeShouldBe($statusCode) {
PHPUnit_Framework_Assert::assertEquals($statusCode, $this->response->getStatusCode());
@@ -160,6 +171,7 @@ trait BasicStructure {
/**
* @Given Logging in using web as :user
+ * @param string $user
*/
public function loggingInUsingWebAs($user) {
$loginUrl = substr($this->baseUrl, 0, -5);
@@ -192,6 +204,8 @@ trait BasicStructure {
/**
* @When Sending a :method to :url with requesttoken
+ * @param string $method
+ * @param string $url
*/
public function sendingAToWithRequesttoken($method, $url) {
$baseUrl = substr($this->baseUrl, 0, -5);
@@ -214,6 +228,8 @@ trait BasicStructure {
/**
* @When Sending a :method to :url without requesttoken
+ * @param string $method
+ * @param string $url
*/
public function sendingAToWithoutRequesttoken($method, $url) {
$baseUrl = substr($this->baseUrl, 0, -5);