@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | $loader->load('services.xml'); |
33 | 33 | $loader->load('twig.xml'); |
34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | $loader->load('services.xml'); |
33 | 33 | $loader->load('twig.xml'); |
34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | $loader->load('services.xml'); |
33 | 33 | $loader->load('twig.xml'); |
34 | 34 | } |
@@ -11,8 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\PayumBundle\DependencyInjection; |
13 | 13 | |
14 | -use Payum\Bundle\PayumBundle\DependencyInjection\MainConfiguration as PayumConfiguration; |
|
15 | -use Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension; |
|
16 | 14 | use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension; |
17 | 15 | use Symfony\Component\Config\FileLocator; |
18 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Component\Registry; |
13 | 13 | |
14 | -require_once __DIR__.'/Fixture/SampleServiceInterface.php'; |
|
14 | +require_once __DIR__ . '/Fixture/SampleServiceInterface.php'; |
|
15 | 15 | |
16 | 16 | use PhpSpec\ObjectBehavior; |
17 | 17 | use Prophecy\Argument; |
@@ -12,9 +12,8 @@ |
||
12 | 12 | namespace Sylius\Behat\Context\Transform; |
13 | 13 | |
14 | 14 | use Behat\Behat\Context\Context; |
15 | -use Sylius\Component\Core\Model\OrderInterface; |
|
16 | -use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
|
17 | 15 | use Sylius\Component\Core\Repository\CustomerRepositoryInterface; |
16 | +use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
|
18 | 17 | use Webmozart\Assert\Assert; |
19 | 18 | |
20 | 19 | /** |
@@ -205,6 +205,7 @@ |
||
205 | 205 | * @Then the product :productName should appear in the shop |
206 | 206 | * @Then the product :productName should be in the shop |
207 | 207 | * @Then this product should still be named :productName |
208 | + * @param string $productName |
|
208 | 209 | */ |
209 | 210 | public function theProductShouldAppearInTheShop($productName) |
210 | 211 | { |
@@ -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; |
@@ -150,6 +150,7 @@ discard block |
||
150 | 150 | |
151 | 151 | /** |
152 | 152 | * @Then the :productVariantCode variant of the :product product should appear in the shop |
153 | + * @param string $productVariantCode |
|
153 | 154 | */ |
154 | 155 | public function theProductVariantShouldAppearInTheShop($productVariantCode, ProductInterface $product) |
155 | 156 | { |
@@ -451,7 +452,7 @@ discard block |
||
451 | 452 | |
452 | 453 | /** |
453 | 454 | * @param string $element |
454 | - * @param $message |
|
455 | + * @param string $message |
|
455 | 456 | */ |
456 | 457 | private function assertValidationMessage($element, $message) |
457 | 458 | { |
@@ -15,9 +15,9 @@ |
||
15 | 15 | use Sylius\Behat\Page\Admin\Channel\IndexPageInterface; |
16 | 16 | use Sylius\Behat\Page\Admin\Channel\UpdatePageInterface; |
17 | 17 | use Sylius\Behat\Page\Shop\HomePageInterface; |
18 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
18 | 19 | use Sylius\Bundle\ThemeBundle\Model\ThemeInterface; |
19 | 20 | use Sylius\Component\Core\Model\ChannelInterface; |
20 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
21 | 21 | use Webmozart\Assert\Assert; |
22 | 22 | |
23 | 23 | /** |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function iSetItsPriceTo($price = null, $channel = null) |
168 | 168 | { |
169 | - $this->createPage->specifyPrice($price, (null === $channel) ? $this->sharedStorage->get('channel') :$channel); |
|
169 | + $this->createPage->specifyPrice($price, (null === $channel) ? $this->sharedStorage->get('channel') : $channel); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | public function iShouldBeNotifiedThatPricesInAllChannelsMustBeDefinedForTheVariant($position) |
426 | 426 | { |
427 | 427 | Assert::same( |
428 | - $this->generatePage->getPricesValidationMessage($position-1), |
|
428 | + $this->generatePage->getPricesValidationMessage($position - 1), |
|
429 | 429 | 'You must define price for every channel.' |
430 | 430 | ); |
431 | 431 | } |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | { |
474 | 474 | Assert::true( |
475 | 475 | $this->indexPage->isSingleResourceWithSpecificElementOnPage(['name' => $productVariantName], sprintf('td > div.ui.label:contains("%s")', $quantity)), |
476 | - sprintf('The product variant %s should have %s items on hand, but it does not.',$productVariantName, $quantity) |
|
476 | + sprintf('The product variant %s should have %s items on hand, but it does not.', $productVariantName, $quantity) |
|
477 | 477 | ); |
478 | 478 | } |
479 | 479 | |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | |
487 | 487 | Assert::true( |
488 | 488 | $this->indexPage->isSingleResourceWithSpecificElementOnPage(['name' => $productVariantName], sprintf('td > div.ui.label:contains("%s")', $quantity)), |
489 | - sprintf('The product variant %s should have %s items on hand, but it does not.',$productVariantName, $quantity) |
|
489 | + sprintf('The product variant %s should have %s items on hand, but it does not.', $productVariantName, $quantity) |
|
490 | 490 | ); |
491 | 491 | } |
492 | 492 |
@@ -15,9 +15,9 @@ |
||
15 | 15 | use Sylius\Behat\Page\Admin\Channel\IndexPageInterface; |
16 | 16 | use Sylius\Behat\Page\Admin\Channel\UpdatePageInterface; |
17 | 17 | use Sylius\Behat\Page\Shop\HomePageInterface; |
18 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
18 | 19 | use Sylius\Bundle\ThemeBundle\Model\ThemeInterface; |
19 | 20 | use Sylius\Component\Core\Model\ChannelInterface; |
20 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
21 | 21 | use Webmozart\Assert\Assert; |
22 | 22 | |
23 | 23 | /** |
@@ -25,15 +25,20 @@ |
||
25 | 25 | */ |
26 | 26 | public function hasValidationErrorWith($message); |
27 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
28 | 31 | public function logIn(); |
29 | 32 | |
30 | 33 | /** |
31 | 34 | * @param string $password |
35 | + * @return void |
|
32 | 36 | */ |
33 | 37 | public function specifyPassword($password); |
34 | 38 | |
35 | 39 | /** |
36 | 40 | * @param string $userName |
41 | + * @return void |
|
37 | 42 | */ |
38 | 43 | public function specifyUserName($userName); |
39 | 44 | } |