|
@@ 109-116 (lines=8) @@
|
| 106 |
|
* @Then the static content :title should appear in the store |
| 107 |
|
* @Then I should see the static content :title in the list |
| 108 |
|
*/ |
| 109 |
|
public function theStaticContentShouldAppearInTheStore($title) |
| 110 |
|
{ |
| 111 |
|
if (!$this->indexPage->isOpen()) { |
| 112 |
|
$this->indexPage->open(); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
Assert::true($this->indexPage->isSingleResourceOnPage(['title' => $title])); |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
/** |
| 119 |
|
* @Then I should see :amount static contents in the list |
|
@@ 133-140 (lines=8) @@
|
| 130 |
|
/** |
| 131 |
|
* @Then the static content :title should not be added |
| 132 |
|
*/ |
| 133 |
|
public function theStaticContentShouldNotBeAdded($title) |
| 134 |
|
{ |
| 135 |
|
if (!$this->indexPage->isOpen()) { |
| 136 |
|
$this->indexPage->open(); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
Assert::false($this->indexPage->isSingleResourceOnPage(['title' => $title])); |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
/** |
| 143 |
|
* @Given /^I want to edit (this static content)$/ |