|
@@ 46-54 (lines=9) @@
|
| 43 |
|
/** |
| 44 |
|
* @Given the store has static content :title |
| 45 |
|
*/ |
| 46 |
|
public function theStoreHasStaticContent($title) |
| 47 |
|
{ |
| 48 |
|
$staticContent = $this->staticContentExampleFactory->create(['title' => $title]); |
| 49 |
|
|
| 50 |
|
$this->staticContentManager->persist($staticContent); |
| 51 |
|
$this->staticContentManager->flush(); |
| 52 |
|
|
| 53 |
|
$this->sharedStorage->set('static_content', $staticContent); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
/** |
| 57 |
|
* @Given the store has static contents :firstTitle and :secondTitle |
|
@@ 69-77 (lines=9) @@
|
| 66 |
|
/** |
| 67 |
|
* @Given the store has static content :title with body :body |
| 68 |
|
*/ |
| 69 |
|
public function theStoreHasStaticContentWithBody($title, $body) |
| 70 |
|
{ |
| 71 |
|
$staticContent = $this->staticContentExampleFactory->create(['title' => $title, 'body' => $body]); |
| 72 |
|
|
| 73 |
|
$this->staticContentManager->persist($staticContent); |
| 74 |
|
$this->staticContentManager->flush(); |
| 75 |
|
|
| 76 |
|
$this->sharedStorage->set('static_content', $staticContent); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
/** |
| 80 |
|
* @Given the store has static content :title with name :name |
|
@@ 82-90 (lines=9) @@
|
| 79 |
|
/** |
| 80 |
|
* @Given the store has static content :title with name :name |
| 81 |
|
*/ |
| 82 |
|
public function theStoreHasStaticContentWithName($title, $name) |
| 83 |
|
{ |
| 84 |
|
$staticContent = $this->staticContentExampleFactory->create(['title' => $title, 'name' => $name]); |
| 85 |
|
|
| 86 |
|
$this->staticContentManager->persist($staticContent); |
| 87 |
|
$this->staticContentManager->flush(); |
| 88 |
|
|
| 89 |
|
$this->sharedStorage->set('static_content', $staticContent); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* @Given /^(it) is not published yet$/ |