| @@ 170-178 (lines=9) @@ | ||
| 167 | /** |
|
| 168 | * @Given a/an :path article exists |
|
| 169 | */ |
|
| 170 | public function createBasicArticle($path) |
|
| 171 | { |
|
| 172 | $fields = array( |
|
| 173 | 'title' => $this->getTitleFromPath($path), |
|
| 174 | 'intro' => $this->getDummyXmlText(), |
|
| 175 | ); |
|
| 176 | ||
| 177 | return $this->createContentwithPath($path, $fields, 'article'); |
|
| 178 | } |
|
| 179 | ||
| 180 | /** |
|
| 181 | * @Given a/an :path article draft exists |
|
| @@ 183-191 (lines=9) @@ | ||
| 180 | /** |
|
| 181 | * @Given a/an :path article draft exists |
|
| 182 | */ |
|
| 183 | public function createArticleDraft($path) |
|
| 184 | { |
|
| 185 | $fields = array( |
|
| 186 | 'title' => $this->getTitleFromPath($path), |
|
| 187 | 'intro' => $this->getDummyXmlText(), |
|
| 188 | ); |
|
| 189 | ||
| 190 | return $this->createContentDraft(2, 'article', $fields); |
|
| 191 | } |
|
| 192 | ||
| 193 | private function getTitleFromPath($path) |
|
| 194 | { |
|