Fix doc blocks
This commit is contained in:
parent
6efa72867a
commit
fbcdf17089
|
@ -60,6 +60,8 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
/**
|
||||
* Parses the xml answer to get ocs response which doesn't match with
|
||||
* http one in v1 of the api.
|
||||
* @param ResponseInterface $response
|
||||
* @return string
|
||||
*/
|
||||
public function getOCSResponse($response) {
|
||||
return $response->xml()->meta[0]->statuscode;
|
||||
|
@ -67,6 +69,8 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* Parses the xml answer to get the array of users returned.
|
||||
* @param ResponseInterface $resp
|
||||
* @return array
|
||||
*/
|
||||
public function getArrayOfUsersResponded($resp) {
|
||||
$listCheckedElements = $resp->xml()->data[0]->users[0]->element;
|
||||
|
@ -76,6 +80,8 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* Parses the xml answer to get the array of groups returned.
|
||||
* @param ResponseInterface $resp
|
||||
* @return array
|
||||
*/
|
||||
public function getArrayOfGroupsResponded($resp) {
|
||||
$listCheckedElements = $resp->xml()->data[0]->groups[0]->element;
|
||||
|
@ -85,6 +91,8 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* Parses the xml answer to get the array of subadmins returned.
|
||||
* @param ResponseInterface $resp
|
||||
* @return array
|
||||
*/
|
||||
public function getArrayOfSubadminsResponded($resp) {
|
||||
$listCheckedElements = $resp->xml()->data[0]->element;
|
||||
|
@ -94,6 +102,8 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* Parses the xml answer to get the array of apps returned.
|
||||
* @param ResponseInterface $resp
|
||||
* @return array
|
||||
*/
|
||||
public function getArrayOfAppsResponded($resp) {
|
||||
$listCheckedElements = $resp->xml()->data[0]->apps[0]->element;
|
||||
|
@ -111,7 +121,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* @Then /^users returned are$/
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $formData
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $usersList
|
||||
*/
|
||||
public function theUsersShouldBe($usersList) {
|
||||
if ($usersList instanceof \Behat\Gherkin\Node\TableNode) {
|
||||
|
@ -125,7 +135,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* @Then /^groups returned are$/
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $formData
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $groupsList
|
||||
*/
|
||||
public function theGroupsShouldBe($groupsList) {
|
||||
if ($groupsList instanceof \Behat\Gherkin\Node\TableNode) {
|
||||
|
@ -139,7 +149,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* @Then /^subadmin groups returned are$/
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $formData
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $groupsList
|
||||
*/
|
||||
public function theSubadminGroupsShouldBe($groupsList) {
|
||||
if ($groupsList instanceof \Behat\Gherkin\Node\TableNode) {
|
||||
|
@ -153,7 +163,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* @Then /^subadmin users returned are$/
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $formData
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $groupsList
|
||||
*/
|
||||
public function theSubadminUsersShouldBe($groupsList) {
|
||||
$this->theSubadminGroupsShouldBe($groupsList);
|
||||
|
@ -161,7 +171,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* @Then /^apps returned are$/
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $formData
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $appList
|
||||
*/
|
||||
public function theAppsShouldBe($appList) {
|
||||
if ($appList instanceof \Behat\Gherkin\Node\TableNode) {
|
||||
|
@ -276,7 +286,6 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
}
|
||||
|
||||
$this->response = $client->get($fullUrl, $options);
|
||||
$subadmins = array($user);
|
||||
$respondedArray = $this->getArrayOfSubadminsResponded($this->response);
|
||||
sort($respondedArray);
|
||||
PHPUnit_Framework_Assert::assertContains($user, $respondedArray);
|
||||
|
@ -295,7 +304,6 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
}
|
||||
|
||||
$this->response = $client->get($fullUrl, $options);
|
||||
$subadmins = array($user);
|
||||
$respondedArray = $this->getArrayOfSubadminsResponded($this->response);
|
||||
sort($respondedArray);
|
||||
PHPUnit_Framework_Assert::assertNotContains($user, $respondedArray);
|
||||
|
@ -658,7 +666,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
|
||||
/**
|
||||
* @When /^Updating last share with$/
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $formData
|
||||
* @param \Behat\Gherkin\Node\TableNode|null $body
|
||||
*/
|
||||
public function updatingLastShare($body) {
|
||||
$share_id = $this->lastShareData->data[0]->id;
|
||||
|
|
Loading…
Reference in New Issue