@@ 255-262 (lines=8) @@ | ||
252 | * @Then /^I should be on the page of ([^""]*) with ([^""]*) "([^""]*)"$/ |
|
253 | * @Then /^I should still be on the page of ([^""]*) with ([^""]*) "([^""]*)"$/ |
|
254 | */ |
|
255 | public function iShouldBeOnTheResourcePage($type, $property, $value) |
|
256 | { |
|
257 | $type = str_replace(' ', '_', $type); |
|
258 | $resource = $this->findOneBy($type, array($property => $value)); |
|
259 | ||
260 | $this->assertSession()->addressEquals($this->generatePageUrl(sprintf('%s_show', $type), array('id' => $resource->getId()))); |
|
261 | $this->assertStatusCodeEquals(200); |
|
262 | } |
|
263 | ||
264 | /** |
|
265 | * @Given /^I am on the page of ([^""]*) with ([^""]*) "([^""]*)"$/ |
@@ 177-184 (lines=8) @@ | ||
174 | /** |
|
175 | * @Then /^I should be on the ftp page of ([^""]*) "([^""]*)"$/ |
|
176 | */ |
|
177 | public function iShouldBeOnTheFtpPage($type, $name) |
|
178 | { |
|
179 | $type = str_replace(' ', '_', $type); |
|
180 | $resource = $this->findOneBy($type, array('name' => $name)); |
|
181 | ||
182 | $this->assertSession()->addressEquals($this->generatePageUrl(sprintf('%s_ftp_show', $type), array('id' => $resource->getId()))); |
|
183 | $this->assertStatusCodeEquals(200); |
|
184 | } |
|
185 | ||
186 | /** |
|
187 | * @Then /^I should see (\d+) ([^" ]*) instances in (that|the) list$/ |