@@ -17,16 +17,34 @@ |
||
17 | 17 | |
18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function enable(): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function disable(): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function nameIt(string $name, string $languageCode): void; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function setPaypalGatewayUsername(string $username): void; |
27 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
28 | 43 | public function setPaypalGatewayPassword(string $password): void; |
29 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
30 | 48 | public function setPaypalGatewaySignature(string $signature): void; |
31 | 49 | |
32 | 50 | public function isCodeDisabled(): bool; |
@@ -192,6 +192,9 @@ |
||
192 | 192 | } |
193 | 193 | } |
194 | 194 | |
195 | + /** |
|
196 | + * @return string |
|
197 | + */ |
|
195 | 198 | private function getImageElementByType(string $type): ?NodeElement |
196 | 199 | { |
197 | 200 | $images = $this->getElement('images'); |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Product; |
15 | 15 | |
16 | -use Behat\Mink\Driver\Selenium2Driver; |
|
17 | 16 | use Behat\Mink\Element\NodeElement; |
18 | 17 | use Sylius\Behat\Behaviour\ChecksCodeImmutability; |
19 | 18 | use Sylius\Behat\Page\Admin\Crud\UpdatePage as BaseUpdatePage; |
@@ -17,7 +17,13 @@ |
||
17 | 17 | |
18 | 18 | interface CreatePageInterface extends BaseCreatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function specifyCode(string $code): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function nameItIn(string $name, string $language): void; |
23 | 29 | } |
@@ -17,6 +17,9 @@ |
||
17 | 17 | |
18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function nameItIn(string $name, string $languageCode): void; |
21 | 24 | |
22 | 25 | public function isCodeDisabled(): bool; |
@@ -18,18 +18,36 @@ |
||
18 | 18 | |
19 | 19 | interface CreatePageInterface extends BaseCreatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function specifyCode(string $code): void; |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function nameIt(string $name, string $language): void; |
24 | 30 | |
25 | 31 | public function isTypeDisabled(): bool; |
26 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
27 | 36 | public function addAttributeValue(string $value, string $localeCode): void; |
28 | 37 | |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
29 | 41 | public function specifyMinValue(int $min): void; |
30 | 42 | |
43 | + /** |
|
44 | + * @return void |
|
45 | + */ |
|
31 | 46 | public function specifyMaxValue(int $max): void; |
32 | 47 | |
48 | + /** |
|
49 | + * @return void |
|
50 | + */ |
|
33 | 51 | public function checkMultiple(): void; |
34 | 52 | |
35 | 53 | /** |
@@ -17,17 +17,29 @@ |
||
17 | 17 | |
18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function changeName(string $name, string $language): void; |
21 | 24 | |
22 | 25 | public function isCodeDisabled(): bool; |
23 | 26 | |
24 | 27 | public function isTypeDisabled(): bool; |
25 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
26 | 32 | public function changeAttributeValue(string $oldValue, string $newValue): void; |
27 | 33 | |
28 | 34 | public function hasAttributeValue(string $value): bool; |
29 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
30 | 39 | public function addAttributeValue(string $value, string $localeCode): void; |
31 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
32 | 44 | public function deleteAttributeValue(string $value): void; |
33 | 45 | } |
@@ -17,10 +17,19 @@ |
||
17 | 17 | |
18 | 18 | interface CreatePageInterface extends BaseCreatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function specifyCode(string $code): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function nameItIn(string $name, string $language): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function addOptionValue(string $code, string $value): void; |
25 | 34 | |
26 | 35 | public function checkValidationMessageForOptionValues(string $message): bool; |
@@ -19,11 +19,20 @@ |
||
19 | 19 | { |
20 | 20 | public function isCodeDisabled(): bool; |
21 | 21 | |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function nameItIn(string $name, string $languageCode): void; |
23 | 26 | |
24 | 27 | public function isThereOptionValue(string $optionValue): bool; |
25 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
26 | 32 | public function addOptionValue(string $code, string $value): void; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function removeOptionValue(string $optionValue): void; |
29 | 38 | } |
@@ -17,7 +17,13 @@ |
||
17 | 17 | |
18 | 18 | interface IndexPageInterface extends BaseIndexPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function accept(array $parameters): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function reject(array $parameters): void; |
23 | 29 | } |