@@ -24,6 +24,7 @@ |
||
24 | 24 | * @param NotificationType $type |
25 | 25 | * |
26 | 26 | * @throws NotificationExpectationMismatchException |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function checkNotification($message, NotificationType $type); |
29 | 30 | } |
@@ -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 | } |
@@ -20,6 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param ChannelInterface $channel |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function setChannel(ChannelInterface $channel); |
25 | 26 | } |
@@ -19,6 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * @param string $name |
21 | 21 | * @param string $value |
22 | + * @return void |
|
22 | 23 | */ |
23 | 24 | public function setCookie($name, $value); |
24 | 25 | } |
@@ -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]> |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Behat; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Behat\Service\Setter\ChannelContextSetter; |
17 | 16 | use Sylius\Behat\Service\Setter\ChannelContextSetterInterface; |
18 | 17 | use Sylius\Behat\Service\Setter\CookieSetterInterface; |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use Behat\Mink\Session; |
16 | 16 | use Behat\Symfony2Extension\Driver\KernelDriver; |
17 | 17 | use PhpSpec\ObjectBehavior; |
18 | -use Prophecy\Argument; |
|
19 | 18 | use Sylius\Behat\Service\Setter\CookieSetter; |
20 | 19 | use Sylius\Behat\Service\Setter\CookieSetterInterface; |
21 | 20 |