|
|
|
|
@ -800,7 +800,7 @@ class FeatureContext implements Context, SnippetAcceptingContext { |
|
|
|
|
elseif($contentExpected == "AN_URL"){ |
|
|
|
|
return $this->isExpectedUrl((string)$element->$field, "index.php/s/"); |
|
|
|
|
} |
|
|
|
|
elseif ($element->$field == $contentExpected){ |
|
|
|
|
elseif ((string)$element->$field == $contentExpected){ |
|
|
|
|
return True; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -958,6 +958,17 @@ class FeatureContext implements Context, SnippetAcceptingContext { |
|
|
|
|
$this->sendingToWith("GET", $url, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @Then /^last share_id is included in the answer$/ |
|
|
|
|
*/ |
|
|
|
|
public function findingLastShareID(){ |
|
|
|
|
print_r($this->response->xml()); |
|
|
|
|
$share_id = $this->lastShareData->data[0]->id; |
|
|
|
|
if (!$this->isFieldInResponse('id', $share_id)){ |
|
|
|
|
PHPUnit_Framework_Assert::fail("Share id $share_id not found in response"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @Then /^Share fields of last share match with$/ |
|
|
|
|
* @param \Behat\Gherkin\Node\TableNode|null $formData |
|
|
|
|
|