@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $objects = $this->loadFixturesFromFile('books.yml'); |
| 77 | 77 | |
| 78 | 78 | $data = |
| 79 | - <<<EOT |
|
| 79 | + <<<EOT |
|
| 80 | 80 | { |
| 81 | 81 | "author": "Christie Golden" |
| 82 | 82 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | }, |
| 42 | 42 | "author": "Christie Golden" |
| 43 | 43 | } |
| 44 | -EOT; |
|
| 44 | +eot; |
|
| 45 | 45 | |
| 46 | 46 | $this->client->request('POST', '/books/', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 47 | 47 | $response = $this->client->getResponse(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | }, |
| 69 | 69 | "author": "Christie Golden" |
| 70 | 70 | } |
| 71 | -EOT; |
|
| 71 | +eot; |
|
| 72 | 72 | |
| 73 | 73 | $this->client->request('PUT', '/books/' . $objects['book1']->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 74 | 74 | $response = $this->client->getResponse(); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | { |
| 88 | 88 | "author": "Christie Golden" |
| 89 | 89 | } |
| 90 | -EOT; |
|
| 90 | +eot; |
|
| 91 | 91 | |
| 92 | 92 | $this->client->request('PATCH', '/books/' . $objects['book1']->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 93 | 93 | $response = $this->client->getResponse(); |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | }, |
| 222 | 222 | "author": "Christie Golden" |
| 223 | 223 | } |
| 224 | -EOT; |
|
| 224 | +eot; |
|
| 225 | 225 | |
| 226 | 226 | $this->client->request('POST', '/create-custom-book', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 227 | 227 | $response = $this->client->getResponse(); |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $objects = $this->loadFixturesFromFile('comic_books.yml'); |
| 86 | 86 | |
| 87 | 87 | $data = |
| 88 | - <<<EOT |
|
| 88 | + <<<EOT |
|
| 89 | 89 | { |
| 90 | 90 | "authorFirstName": "Joe", |
| 91 | 91 | "authorLastName": "Kelly" |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | "authorFirstName": "Joe", |
| 32 | 32 | "authorLastName": "Kelly" |
| 33 | 33 | } |
| 34 | -EOT; |
|
| 34 | +eot; |
|
| 35 | 35 | |
| 36 | 36 | $this->client->request('POST', '/v1/comic-books/', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 37 | 37 | $response = $this->client->getResponse(); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | "authorFirstName": "Joe", |
| 51 | 51 | "authorLastName": "Kelly" |
| 52 | 52 | } |
| 53 | -EOT; |
|
| 53 | +eot; |
|
| 54 | 54 | |
| 55 | 55 | $this->client->request('POST', '/v1.2/comic-books/', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 56 | 56 | $response = $this->client->getResponse(); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | "authorFirstName": "Joe", |
| 72 | 72 | "authorLastName": "Kelly" |
| 73 | 73 | } |
| 74 | -EOT; |
|
| 74 | +eot; |
|
| 75 | 75 | |
| 76 | 76 | $this->client->request('PUT', '/v1/comic-books/' . $objects['comic-book1']->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 77 | 77 | $response = $this->client->getResponse(); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | "authorFirstName": "Joe", |
| 92 | 92 | "authorLastName": "Kelly" |
| 93 | 93 | } |
| 94 | -EOT; |
|
| 94 | +eot; |
|
| 95 | 95 | |
| 96 | 96 | $this->client->request('PATCH', '/v1/comic-books/' . $objects['comic-book1']->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 97 | 97 | $response = $this->client->getResponse(); |
@@ -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 | } |
@@ -130,6 +130,8 @@ |
||
| 130 | 130 | /** |
| 131 | 131 | * @Given I have proceeded order with :shippingMethodName shipping method and :paymentMethodName payment |
| 132 | 132 | * @When I proceed with :shippingMethodName shipping method and :paymentMethodName payment |
| 133 | + * @param string $shippingMethodName |
|
| 134 | + * @param string $paymentMethodName |
|
| 133 | 135 | */ |
| 134 | 136 | public function iProceedOrderWithShippingMethodAndPayment($shippingMethodName, $paymentMethodName) |
| 135 | 137 | { |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | { |
| 103 | 103 | "code": "es_ES" |
| 104 | 104 | } |
| 105 | -EOT; |
|
| 105 | +eot; |
|
| 106 | 106 | |
| 107 | 107 | $this->client->request('POST', '/api/v1/locales/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 108 | 108 | |
@@ -16,13 +16,13 @@ |
||
| 16 | 16 | use Sylius\Behat\NotificationType; |
| 17 | 17 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
| 18 | 18 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
| 19 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 19 | 20 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
| 20 | 21 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
| 21 | 22 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
| 22 | 23 | use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface; |
| 23 | 24 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
| 24 | 25 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
| 25 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 26 | 26 | use Sylius\Behat\Service\NotificationCheckerInterface; |
| 27 | 27 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
| 28 | 28 | use Sylius\Behat\Service\SharedStorageInterface; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | "name": "Regular", |
| 75 | 75 | "description": "Regular weight items" |
| 76 | 76 | } |
| 77 | -EOT; |
|
| 77 | +eot; |
|
| 78 | 78 | |
| 79 | 79 | $this->client->request('POST', '/api/v1/shipping-categories/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 80 | 80 | |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | "name": "Light", |
| 207 | 207 | "description": "Light weight items" |
| 208 | 208 | } |
| 209 | -EOT; |
|
| 209 | +eot; |
|
| 210 | 210 | |
| 211 | 211 | $this->client->request('PUT', $this->getShippingCategoryUrl($shippingCategory), [], [], static::$authorizedHeaderWithContentType, $data); |
| 212 | 212 | |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | "name": "Light", |
| 250 | 250 | "description": "Light weight items" |
| 251 | 251 | } |
| 252 | -EOT; |
|
| 252 | +eot; |
|
| 253 | 253 | |
| 254 | 254 | $this->client->request('PATCH', $this->getShippingCategoryUrl($shippingCategory), [], [], static::$authorizedHeaderWithContentType, $data); |
| 255 | 255 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | } |
| 150 | 150 | ] |
| 151 | 151 | } |
| 152 | -EOT; |
|
| 152 | +eot; |
|
| 153 | 153 | |
| 154 | 154 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 155 | 155 | |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | } |
| 184 | 184 | ] |
| 185 | 185 | } |
| 186 | -EOT; |
|
| 186 | +eot; |
|
| 187 | 187 | |
| 188 | 188 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 189 | 189 | |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | } |
| 224 | 224 | ] |
| 225 | 225 | } |
| 226 | -EOT; |
|
| 226 | +eot; |
|
| 227 | 227 | |
| 228 | 228 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 229 | 229 | |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | } |
| 260 | 260 | ] |
| 261 | 261 | } |
| 262 | -EOT; |
|
| 262 | +eot; |
|
| 263 | 263 | |
| 264 | 264 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 265 | 265 | |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | { |
| 206 | 206 | "tracking": "BANANAS" |
| 207 | 207 | } |
| 208 | -EOT; |
|
| 208 | +eot; |
|
| 209 | 209 | |
| 210 | 210 | $this->client->request('PUT', $this->getShipOrderShipmentUrl($orderId, $rawResponse['shipments'][0]['id']), [], [], static::$authorizedHeaderWithContentType, $data); |
| 211 | 211 | |