Skip to content

Commit 9f29038

Browse files
committed
MC-40562: Stabilize Web-API tests
1 parent 4a04379 commit 9f29038

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/SendFriend/SendFriendTest.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function testErrors(string $input, string $errorMessage)
189189
sendEmailToFriend(
190190
input: {
191191
$input
192-
}
192+
}
193193
) {
194194
sender {
195195
name
@@ -211,7 +211,6 @@ public function testErrors(string $input, string $errorMessage)
211211
/**
212212
* @magentoApiDataFixture Magento/Customer/_files/customer.php
213213
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
214-
* @magentoConfigFixture default_store sendfriend/email/enabled 1
215214
* @magentoConfigFixture default_store sendfriend/email/max_per_hour 1
216215
* @magentoApiDataFixture Magento/SendFriend/Fixtures/sendfriend_configuration.php
217216
*/
@@ -284,12 +283,12 @@ public function sendFriendsErrorsDataProvider()
284283
{
285284
return [
286285
[
287-
'product_id: 1
286+
'product_id: 1
288287
sender: {
289288
name: "Name"
290289
email: "e@mail.com"
291290
message: "Lorem Ipsum"
292-
}
291+
}
293292
recipients: [
294293
{
295294
name: ""
@@ -302,12 +301,12 @@ public function sendFriendsErrorsDataProvider()
302301
]', 'Please provide Name for all of recipients.'
303302
],
304303
[
305-
'product_id: 1
304+
'product_id: 1
306305
sender: {
307306
name: "Name"
308307
email: "e@mail.com"
309308
message: "Lorem Ipsum"
310-
}
309+
}
311310
recipients: [
312311
{
313312
name: "Recipient Name 1"
@@ -320,12 +319,12 @@ public function sendFriendsErrorsDataProvider()
320319
]', 'Please provide Email for all of recipients.'
321320
],
322321
[
323-
'product_id: 1
322+
'product_id: 1
324323
sender: {
325324
name: ""
326325
email: "e@mail.com"
327326
message: "Lorem Ipsum"
328-
}
327+
}
329328
recipients: [
330329
{
331330
name: "Recipient Name 1"
@@ -338,12 +337,12 @@ public function sendFriendsErrorsDataProvider()
338337
]', 'Please provide Name of sender.'
339338
],
340339
[
341-
'product_id: 1
340+
'product_id: 1
342341
sender: {
343342
name: "Name"
344343
email: "e@mail.com"
345344
message: ""
346-
}
345+
}
347346
recipients: [
348347
{
349348
name: "Recipient Name 1"
@@ -405,9 +404,9 @@ private function getQuery(int $productId, string $recipients): string
405404
name: "Name"
406405
email: "e@mail.com"
407406
message: "Lorem Ipsum"
408-
}
407+
}
409408
recipients: [{$recipients}]
410-
}
409+
}
411410
) {
412411
sender {
413412
name

0 commit comments

Comments
 (0)