| @@ 331-338 (lines=8) @@ | ||
| 328 | * @Then /^I should be on the page of ([^""]*) with ([^""]*) "([^""]*)"$/ |
|
| 329 | * @Then /^I should still be on the page of ([^""]*) with ([^""]*) "([^""]*)"$/ |
|
| 330 | */ |
|
| 331 | public function iShouldBeOnTheResourcePage($type, $property, $value) |
|
| 332 | { |
|
| 333 | $type = str_replace(' ', '_', $type); |
|
| 334 | $resource = $this->findOneBy($type, array($property => $value)); |
|
| 335 | ||
| 336 | $this->assertSession()->addressEquals($this->generatePageUrl(sprintf('%s_show', $type), array('id' => $resource->getId()))); |
|
| 337 | $this->assertStatusCodeEquals(200); |
|
| 338 | } |
|
| 339 | ||
| 340 | /** |
|
| 341 | * @Given /^I am on the page of ([^""]*) with ([^""]*) "([^""]*)"$/ |
|
| @@ 184-191 (lines=8) @@ | ||
| 181 | /** |
|
| 182 | * @Then /^I should be on the ftp page of ([^""]*) "([^""]*)"$/ |
|
| 183 | */ |
|
| 184 | public function iShouldBeOnTheFtpPage($type, $name) |
|
| 185 | { |
|
| 186 | $type = str_replace(' ', '_', $type); |
|
| 187 | $resource = $this->findOneBy($type, array('name' => $name)); |
|
| 188 | ||
| 189 | $this->assertSession()->addressEquals($this->generatePageUrl(sprintf('%s_ftp_show', $type), array('id' => $resource->getId()))); |
|
| 190 | $this->assertStatusCodeEquals(200); |
|
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * @Then /^I should see (\d+) ([^" ]*) instances in (that|the) list$/ |
|