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