@@ 7-34 (lines=28) @@ | ||
4 | ||
5 | use Sylius\Behat\Page\Admin\Crud\UpdatePage as BaseUpdatePage; |
|
6 | ||
7 | final class UpdatePage extends BaseUpdatePage implements UpdatePageInterface |
|
8 | { |
|
9 | /** |
|
10 | * {@inheritdoc} |
|
11 | */ |
|
12 | public function changeBodyTo($body) |
|
13 | { |
|
14 | $this->getElement('body')->setValue($body); |
|
15 | } |
|
16 | ||
17 | /** |
|
18 | * {@inheritdoc} |
|
19 | */ |
|
20 | public function getBody() |
|
21 | { |
|
22 | return $this->getElement('body')->getValue(); |
|
23 | } |
|
24 | ||
25 | /** |
|
26 | * {@inheritdoc} |
|
27 | */ |
|
28 | protected function getDefinedElements() |
|
29 | { |
|
30 | return array_merge(parent::getDefinedElements(), [ |
|
31 | 'body' => '#lakion_sylius_cms_static_content_body', |
|
32 | ]); |
|
33 | } |
|
34 | } |
|
35 |
@@ 7-34 (lines=28) @@ | ||
4 | ||
5 | use Sylius\Behat\Page\Admin\Crud\UpdatePage as BaseUpdatePage; |
|
6 | ||
7 | class UpdatePage extends BaseUpdatePage implements UpdatePageInterface |
|
8 | { |
|
9 | /** |
|
10 | * {@inheritdoc} |
|
11 | */ |
|
12 | public function changeBodyTo($body) |
|
13 | { |
|
14 | $this->getElement('body')->setValue($body); |
|
15 | } |
|
16 | ||
17 | /** |
|
18 | * {@inheritdoc} |
|
19 | */ |
|
20 | public function getBody() |
|
21 | { |
|
22 | return $this->getElement('body')->getValue(); |
|
23 | } |
|
24 | ||
25 | /** |
|
26 | * {@inheritdoc} |
|
27 | */ |
|
28 | protected function getDefinedElements() |
|
29 | { |
|
30 | return array_merge(parent::getDefinedElements(), [ |
|
31 | 'body' => '#lakion_sylius_cms_string_block_body', |
|
32 | ]); |
|
33 | } |
|
34 | } |
|
35 |