@@ -14,32 +14,32 @@ |
||
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | 15 | use Doctrine\Common\Persistence\ObjectManager; |
| 16 | 16 | use SM\Factory\FactoryInterface as StateMachineFactoryInterface; |
| 17 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
| 17 | 18 | use Sylius\Component\Core\Currency\CurrencyStorageInterface; |
| 19 | +use Sylius\Component\Core\Model\AddressInterface; |
|
| 18 | 20 | use Sylius\Component\Core\Model\ChannelInterface; |
| 19 | 21 | use Sylius\Component\Core\Model\ChannelPricingInterface; |
| 20 | -use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
| 21 | -use Sylius\Component\Core\OrderCheckoutTransitions; |
|
| 22 | -use Sylius\Component\Currency\Model\CurrencyInterface; |
|
| 23 | -use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
| 24 | -use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
| 25 | -use Sylius\Component\Core\Model\AddressInterface; |
|
| 26 | 22 | use Sylius\Component\Core\Model\OrderInterface; |
| 27 | 23 | use Sylius\Component\Core\Model\OrderItemInterface; |
| 28 | 24 | use Sylius\Component\Core\Model\ProductInterface; |
| 29 | 25 | use Sylius\Component\Core\Model\ProductVariantInterface; |
| 26 | +use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
| 30 | 27 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
| 28 | +use Sylius\Component\Core\OrderCheckoutTransitions; |
|
| 31 | 29 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
| 32 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
| 30 | +use Sylius\Component\Currency\Model\CurrencyInterface; |
|
| 31 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
| 32 | +use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
| 33 | 33 | use Sylius\Component\Order\OrderTransitions; |
| 34 | +use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
| 34 | 35 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 35 | 36 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 36 | 37 | use Sylius\Component\Payment\PaymentTransitions; |
| 38 | +use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
| 37 | 39 | use Sylius\Component\Resource\Factory\FactoryInterface; |
| 38 | 40 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 39 | 41 | use Sylius\Component\Shipping\ShipmentTransitions; |
| 40 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
| 41 | 42 | use Sylius\Component\User\Model\UserInterface; |
| 42 | -use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @author Łukasz Chruściel <[email protected]> |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | 15 | use Doctrine\Common\Persistence\ObjectManager; |
| 16 | -use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface; |
|
| 17 | 16 | use Sylius\Behat\Service\SharedStorageInterface; |
| 17 | +use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface; |
|
| 18 | 18 | use Sylius\Component\User\Model\UserInterface; |
| 19 | 19 | use Sylius\Component\User\Repository\UserRepositoryInterface; |
| 20 | 20 | |
@@ -63,12 +63,14 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * @param string $productName |
| 66 | + * @return void |
|
| 66 | 67 | */ |
| 67 | 68 | public function removeProduct($productName); |
| 68 | 69 | |
| 69 | 70 | /** |
| 70 | 71 | * @param string $productName |
| 71 | 72 | * @param int $quantity |
| 73 | + * @return void |
|
| 72 | 74 | */ |
| 73 | 75 | public function changeQuantity($productName, $quantity); |
| 74 | 76 | |
@@ -112,5 +114,8 @@ discard block |
||
| 112 | 114 | */ |
| 113 | 115 | public function getQuantity($productName); |
| 114 | 116 | |
| 117 | + /** |
|
| 118 | + * @return void |
|
| 119 | + */ |
|
| 115 | 120 | public function clearCart(); |
| 116 | 121 | } |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Doctrine\Common\Collections\ArrayCollection; |
| 15 | 15 | use Doctrine\Common\Collections\Collection; |
| 16 | 16 | use Sylius\Component\Resource\Model\TranslatableTrait; |
| 17 | -use Sylius\Component\Resource\Model\TranslationInterface; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $this->addSql('CREATE TABLE sylius_product_variant_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT NOT NULL, name VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) NOT NULL, INDEX IDX_8DC18EDC2C2AC5D3 (translatable_id), UNIQUE INDEX sylius_product_variant_translation_uniq_trans (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'); |
| 35 | 35 | $this->addSql('ALTER TABLE sylius_product_variant_translation ADD CONSTRAINT FK_8DC18EDC2C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES sylius_product_variant (id) ON DELETE CASCADE'); |
| 36 | - $this->addSql('INSERT INTO sylius_product_variant_translation (translatable_id, name, locale) SELECT id, name, "'.$defaultLocale.'" from sylius_product_variant WHERE sylius_product_variant.name IS NOT null'); |
|
| 36 | + $this->addSql('INSERT INTO sylius_product_variant_translation (translatable_id, name, locale) SELECT id, name, "' . $defaultLocale . '" from sylius_product_variant WHERE sylius_product_variant.name IS NOT null'); |
|
| 37 | 37 | $this->addSql('ALTER TABLE sylius_product_variant DROP name'); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
| 48 | 48 | |
| 49 | 49 | $this->addSql('ALTER TABLE sylius_product_variant ADD name VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci'); |
| 50 | - $this->addSql('UPDATE sylius_product_variant SET name = (SELECT name FROM sylius_product_variant_translation WHERE sylius_product_variant_translation.translatable_id = sylius_product_variant.id AND sylius_product_variant_translation.locale = "'.$defaultLocale.'")'); |
|
| 50 | + $this->addSql('UPDATE sylius_product_variant SET name = (SELECT name FROM sylius_product_variant_translation WHERE sylius_product_variant_translation.translatable_id = sylius_product_variant.id AND sylius_product_variant_translation.locale = "' . $defaultLocale . '")'); |
|
| 51 | 51 | $this->addSql('DROP TABLE sylius_product_variant_translation'); |
| 52 | 52 | } |
| 53 | 53 | } |