@@ -15,17 +15,17 @@ |
||
| 15 | 15 | use Sylius\Behat\NotificationType; |
| 16 | 16 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
| 17 | 17 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
| 18 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 18 | 19 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
| 19 | 20 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
| 20 | 21 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
| 21 | 22 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
| 22 | 23 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
| 23 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 24 | 24 | use Sylius\Behat\Service\NotificationCheckerInterface; |
| 25 | 25 | use Sylius\Behat\Service\Resolver\CurrentProductPageResolverInterface; |
| 26 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
| 26 | 27 | use Sylius\Component\Core\Model\ChannelInterface; |
| 27 | 28 | use Sylius\Component\Core\Model\ProductInterface; |
| 28 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
| 29 | 29 | use Sylius\Component\Currency\Model\CurrencyInterface; |
| 30 | 30 | use Sylius\Component\Product\Model\ProductAssociationTypeInterface; |
| 31 | 31 | use Sylius\Component\Taxonomy\Model\TaxonInterface; |
@@ -23,11 +23,13 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | /** |
| 25 | 25 | * @param int $price |
| 26 | + * @return void |
|
| 26 | 27 | */ |
| 27 | 28 | public function specifyPrice($price); |
| 28 | 29 | |
| 29 | 30 | /** |
| 30 | 31 | * @param string $name |
| 32 | + * @return void |
|
| 31 | 33 | */ |
| 32 | 34 | public function choosePricingCalculator($name); |
| 33 | 35 | |
@@ -35,53 +37,65 @@ discard block |
||
| 35 | 37 | * @param int $price |
| 36 | 38 | * @param ChannelInterface $channel |
| 37 | 39 | * @param CurrencyInterface $currency |
| 40 | + * @return void |
|
| 38 | 41 | */ |
| 39 | 42 | public function specifyPriceForChannelAndCurrency($price, ChannelInterface $channel, CurrencyInterface $currency); |
| 40 | 43 | |
| 41 | 44 | /** |
| 42 | 45 | * @param string $code |
| 46 | + * @return void |
|
| 43 | 47 | */ |
| 44 | 48 | public function specifyCode($code); |
| 45 | 49 | |
| 46 | 50 | /** |
| 47 | 51 | * @param string $name |
| 48 | 52 | * @param string $localeCode |
| 53 | + * @return void |
|
| 49 | 54 | */ |
| 50 | 55 | public function nameItIn($name, $localeCode); |
| 51 | 56 | |
| 52 | 57 | /** |
| 53 | 58 | * @param string $slug |
| 59 | + * @return void |
|
| 54 | 60 | */ |
| 55 | 61 | public function specifySlug($slug); |
| 56 | 62 | |
| 57 | 63 | /** |
| 58 | 64 | * @param string $attribute |
| 59 | 65 | * @param string $value |
| 66 | + * @return void |
|
| 60 | 67 | */ |
| 61 | 68 | public function addAttribute($attribute, $value); |
| 62 | 69 | |
| 63 | 70 | /** |
| 64 | 71 | * @param string $attribute |
| 72 | + * @return void |
|
| 65 | 73 | */ |
| 66 | 74 | public function removeAttribute($attribute); |
| 67 | 75 | |
| 68 | 76 | /** |
| 69 | 77 | * @param string $path |
| 70 | 78 | * @param string $code |
| 79 | + * @return void |
|
| 71 | 80 | */ |
| 72 | 81 | public function attachImage($path, $code = null); |
| 73 | 82 | |
| 83 | + /** |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 74 | 86 | public function enableSlugModification(); |
| 75 | 87 | |
| 76 | 88 | /** |
| 77 | 89 | * @param ProductAssociationTypeInterface $productAssociationType |
| 78 | 90 | * @param string[] $productsNames |
| 91 | + * @return void |
|
| 79 | 92 | */ |
| 80 | 93 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames); |
| 81 | 94 | |
| 82 | 95 | /** |
| 83 | 96 | * @param string $productName |
| 84 | 97 | * @param ProductAssociationTypeInterface $productAssociationType |
| 98 | + * @return void |
|
| 85 | 99 | */ |
| 86 | 100 | public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType); |
| 87 | 101 | } |
@@ -32,16 +32,19 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @param Collection $variants |
| 35 | + * @return void |
|
| 35 | 36 | */ |
| 36 | 37 | public function setVariants(Collection $variants); |
| 37 | 38 | |
| 38 | 39 | /** |
| 39 | 40 | * @param VariantInterface $variant |
| 41 | + * @return void |
|
| 40 | 42 | */ |
| 41 | 43 | public function addVariant(VariantInterface $variant); |
| 42 | 44 | |
| 43 | 45 | /** |
| 44 | 46 | * @param VariantInterface $variant |
| 47 | + * @return void |
|
| 45 | 48 | */ |
| 46 | 49 | public function removeVariant(VariantInterface $variant); |
| 47 | 50 | |
@@ -64,16 +67,19 @@ discard block |
||
| 64 | 67 | |
| 65 | 68 | /** |
| 66 | 69 | * @param Collection $options |
| 70 | + * @return void |
|
| 67 | 71 | */ |
| 68 | 72 | public function setOptions(Collection $options); |
| 69 | 73 | |
| 70 | 74 | /** |
| 71 | 75 | * @param OptionInterface $option |
| 76 | + * @return void |
|
| 72 | 77 | */ |
| 73 | 78 | public function addOption(OptionInterface $option); |
| 74 | 79 | |
| 75 | 80 | /** |
| 76 | 81 | * @param OptionInterface $option |
| 82 | + * @return void |
|
| 77 | 83 | */ |
| 78 | 84 | public function removeOption(OptionInterface $option); |
| 79 | 85 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | foreach ($this->channelRepository->findAll() as $channel) { |
| 58 | 58 | foreach ($this->currencyRepository->findAll() as $currency) { |
| 59 | - $builder->add($channel->getCode().$options['delimiter'].$currency->getCode(), 'sylius_money', [ |
|
| 59 | + $builder->add($channel->getCode() . $options['delimiter'] . $currency->getCode(), 'sylius_money', [ |
|
| 60 | 60 | 'label' => sprintf('%s %s', $channel->getName(), $currency->getCode()) |
| 61 | 61 | ]); |
| 62 | 62 | } |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $view->vars['prototypes'] = []; |
| 118 | 118 | foreach ($form->getConfig()->getAttribute('prototypes') as $group => $prototypes) { |
| 119 | 119 | foreach ($prototypes as $type => $prototype) { |
| 120 | - $view->vars['prototypes'][$group.'_'.$type] = $prototype->createView($view); |
|
| 120 | + $view->vars['prototypes'][$group . '_' . $type] = $prototype->createView($view); |
|
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | } |