@@ -20,8 +20,12 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $shippingMethod |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function selectShippingMethod($shippingMethod); |
25 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
26 | 30 | public function continueCheckout(); |
27 | 31 | } |
@@ -13,8 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Behat\Mink\Element\NodeElement; |
15 | 15 | use Behat\Mink\Session; |
16 | -use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
|
17 | -use Symfony\Component\Routing\RequestContext; |
|
18 | 16 | use Symfony\Component\Routing\RouterInterface; |
19 | 17 | |
20 | 18 | /** |
@@ -75,8 +75,8 @@ |
||
75 | 75 | */ |
76 | 76 | final protected function makePathAbsolute($path) |
77 | 77 | { |
78 | - $baseUrl = rtrim($this->getParameter('base_url'), '/').'/'; |
|
78 | + $baseUrl = rtrim($this->getParameter('base_url'), '/') . '/'; |
|
79 | 79 | |
80 | - return 0 !== strpos($path, 'http') ? $baseUrl.ltrim($path, '/') : $path; |
|
80 | + return 0 !== strpos($path, 'http') ? $baseUrl . ltrim($path, '/') : $path; |
|
81 | 81 | } |
82 | 82 | } |
@@ -91,8 +91,8 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * @param array $columns |
|
95 | - * @param array $fields |
|
94 | + * @param NodeElement[] $columns |
|
95 | + * @param string[] $fields |
|
96 | 96 | * |
97 | 97 | * @return bool |
98 | 98 | */ |
@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * @param int $statusCode |
105 | - * @param mixed $streamMock |
|
105 | + * @param Mock $streamMock |
|
106 | 106 | * |
107 | 107 | * @return Mock |
108 | 108 | */ |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param string $source |
88 | - * @param mixed $content |
|
88 | + * @param string $content |
|
89 | 89 | * |
90 | 90 | * @throws \RuntimeException |
91 | 91 | */ |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * @param string $source |
101 | - * @param mixed $content |
|
101 | + * @param string $content |
|
102 | 102 | * |
103 | 103 | * @throws \RuntimeException |
104 | 104 | */ |
@@ -22,14 +22,19 @@ |
||
22 | 22 | * @param string $email |
23 | 23 | * |
24 | 24 | * @throws \InvalidArgumentException |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function logIn($email); |
27 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
28 | 32 | public function logOut(); |
29 | 33 | |
30 | 34 | /** |
31 | 35 | * @param UserInterface $user |
32 | 36 | * @param callable $action |
37 | + * @return void |
|
33 | 38 | */ |
34 | 39 | public function performActionAs(UserInterface $user, callable $action); |
35 | 40 | } |
@@ -12,9 +12,9 @@ |
||
12 | 12 | namespace spec\Sylius\Behat; |
13 | 13 | |
14 | 14 | use Mockery\MockInterface; |
15 | +use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer; |
|
15 | 16 | use Payum\Core\Bridge\Guzzle\HttpClient; |
16 | 17 | use PhpSpec\ObjectBehavior; |
17 | -use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer; |
|
18 | 18 | use Sylius\Behat\Service\Mocker\MockerInterface; |
19 | 19 | |
20 | 20 | /** |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use Sylius\Component\Core\Model\UserInterface; |
19 | 19 | use Sylius\Component\User\Repository\UserRepositoryInterface; |
20 | 20 | use Symfony\Component\HttpFoundation\Session\SessionInterface; |
21 | -use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; |
|
22 | 21 | |
23 | 22 | /** |
24 | 23 | * @author Arkadiusz Krakowiak <[email protected]> |
@@ -22,8 +22,8 @@ |
||
22 | 22 | use Sylius\Bundle\AddressingBundle\Form\Type\ZoneType; |
23 | 23 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
24 | 24 | use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
25 | -use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
|
26 | 25 | use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType; |
26 | +use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
|
27 | 27 | use Sylius\Component\Addressing\Model\Address; |
28 | 28 | use Sylius\Component\Addressing\Model\AddressInterface; |
29 | 29 | use Sylius\Component\Addressing\Model\Country; |