@@ -40,7 +40,7 @@ |
||
40 | 40 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
41 | 41 | $channelData = $this->loadFixturesFromFile('resources/channels.yml'); |
42 | 42 | |
43 | - $this->client->request('GET', '/api/channels/'.$channelData['channel-web']->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
43 | + $this->client->request('GET', '/api/channels/' . $channelData['channel-web']->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
44 | 44 | |
45 | 45 | $response = $this->client->getResponse(); |
46 | 46 | $this->assertResponse($response, 'channel/show_response', Response::HTTP_OK); |
@@ -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 | /** |
@@ -20,6 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $paymentMethod |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function selectPaymentMethod($paymentMethod); |
25 | 26 | |
@@ -37,12 +38,24 @@ discard block |
||
37 | 38 | */ |
38 | 39 | public function getItemSubtotal($itemName); |
39 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
40 | 44 | public function nextStep(); |
41 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
42 | 49 | public function changeShippingMethod(); |
43 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
44 | 54 | public function changeShippingMethodByStepLabel(); |
45 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
46 | 59 | public function changeAddressByStepLabel(); |
47 | 60 | |
48 | 61 | /** |
@@ -19,10 +19,10 @@ |
||
19 | 19 | use Sylius\Component\Core\Model\OrderInterface; |
20 | 20 | use Sylius\Component\Core\Model\ShipmentInterface; |
21 | 21 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
22 | +use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface; |
|
22 | 23 | use Sylius\Component\Core\Resolver\ZoneAndChannelBasedShippingMethodsResolver; |
23 | 24 | use Sylius\Component\Shipping\Checker\ShippingMethodEligibilityCheckerInterface; |
24 | 25 | use Sylius\Component\Shipping\Model\ShippingSubjectInterface; |
25 | -use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface; |
|
26 | 26 | use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface; |
27 | 27 | |
28 | 28 | /** |
@@ -13,11 +13,11 @@ |
||
13 | 13 | |
14 | 14 | use SM\Factory\FactoryInterface; |
15 | 15 | use SM\StateMachine\StateMachineInterface; |
16 | -use Sylius\Component\Order\Model\OrderInterface; |
|
17 | -use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
18 | 16 | use Sylius\Component\Core\Model\ShipmentInterface; |
19 | 17 | use Sylius\Component\Core\OrderShippingStates; |
20 | 18 | use Sylius\Component\Core\OrderShippingTransitions; |
19 | +use Sylius\Component\Order\Model\OrderInterface; |
|
20 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $imageForm = $this->getLastImageElement(); |
56 | 56 | $imageForm->fillField('Code', $code); |
57 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
57 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Behat\Mink\Driver\Selenium2Driver; |
15 | 15 | use Behat\Mink\Element\NodeElement; |
16 | 16 | use Behat\Mink\Exception\ElementNotFoundException; |
17 | -use Behat\Mink\Exception\UnsupportedDriverActionException; |
|
18 | 17 | use Sylius\Behat\Behaviour\SpecifiesItsCode; |
19 | 18 | use Sylius\Behat\Page\Admin\Crud\CreatePage as BaseCreatePage; |
20 | 19 | use Sylius\Component\Core\Model\TaxonInterface; |
@@ -199,6 +199,7 @@ |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * {@inheritdoc} |
202 | + * @param string $name |
|
202 | 203 | */ |
203 | 204 | protected function getElement($name, array $parameters = []) |
204 | 205 | { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | $imageForm = $this->getLastImageElement(); |
154 | 154 | $imageForm->fillField('Code', $code); |
155 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
155 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $filesPath = $this->getParameter('files_path'); |
164 | 164 | |
165 | 165 | $imageForm = $this->getImageElementByCode($code); |
166 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
166 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | private function getImageElementByCode($code) |
262 | 262 | { |
263 | 263 | $images = $this->getElement('images'); |
264 | - $inputCode = $images->find('css', 'input[value="'.$code.'"]'); |
|
264 | + $inputCode = $images->find('css', 'input[value="' . $code . '"]'); |
|
265 | 265 | |
266 | 266 | if (null === $inputCode) { |
267 | 267 | return null; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $imageForm = $this->getLastImageElement(); |
56 | 56 | $imageForm->fillField('Code', $code); |
57 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
57 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param string $email |
41 | + * @return void |
|
41 | 42 | */ |
42 | 43 | public function setEmail($email); |
43 | 44 | |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | |
51 | 52 | /** |
52 | 53 | * @param string $emailCanonical |
54 | + * @return void |
|
53 | 55 | */ |
54 | 56 | public function setEmailCanonical($emailCanonical); |
55 | 57 | |
@@ -67,6 +69,7 @@ discard block |
||
67 | 69 | |
68 | 70 | /** |
69 | 71 | * @param string $firstName |
72 | + * @return void |
|
70 | 73 | */ |
71 | 74 | public function setFirstName($firstName); |
72 | 75 | |
@@ -77,6 +80,7 @@ discard block |
||
77 | 80 | |
78 | 81 | /** |
79 | 82 | * @param string $lastName |
83 | + * @return void |
|
80 | 84 | */ |
81 | 85 | public function setLastName($lastName); |
82 | 86 | |
@@ -87,6 +91,7 @@ discard block |
||
87 | 91 | |
88 | 92 | /** |
89 | 93 | * @param \DateTime $birthday |
94 | + * @return void |
|
90 | 95 | */ |
91 | 96 | public function setBirthday(\DateTime $birthday = null); |
92 | 97 | |
@@ -99,6 +104,7 @@ discard block |
||
99 | 104 | * You should use interface constants for that. |
100 | 105 | * |
101 | 106 | * @param string $gender |
107 | + * @return void |
|
102 | 108 | */ |
103 | 109 | public function setGender($gender); |
104 | 110 | |
@@ -119,6 +125,7 @@ discard block |
||
119 | 125 | |
120 | 126 | /** |
121 | 127 | * @param string $phoneNumber |
128 | + * @return void |
|
122 | 129 | */ |
123 | 130 | public function setPhoneNumber($phoneNumber); |
124 | 131 | } |