Skip to content

Commit 8924e9e

Browse files
committed
MC-40562: Stabilize Web-API tests
1 parent df19533 commit 8924e9e

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

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

Lines changed: 12 additions & 11 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,6 +211,7 @@ 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
214215
* @magentoConfigFixture default_store sendfriend/email/max_per_hour 1
215216
* @magentoApiDataFixture Magento/SendFriend/Fixtures/sendfriend_configuration.php
216217
*/
@@ -283,12 +284,12 @@ public function sendFriendsErrorsDataProvider()
283284
{
284285
return [
285286
[
286-
'product_id: 1
287+
'product_id: 1
287288
sender: {
288289
name: "Name"
289290
email: "e@mail.com"
290291
message: "Lorem Ipsum"
291-
}
292+
}
292293
recipients: [
293294
{
294295
name: ""
@@ -301,12 +302,12 @@ public function sendFriendsErrorsDataProvider()
301302
]', 'Please provide Name for all of recipients.'
302303
],
303304
[
304-
'product_id: 1
305+
'product_id: 1
305306
sender: {
306307
name: "Name"
307308
email: "e@mail.com"
308309
message: "Lorem Ipsum"
309-
}
310+
}
310311
recipients: [
311312
{
312313
name: "Recipient Name 1"
@@ -319,12 +320,12 @@ public function sendFriendsErrorsDataProvider()
319320
]', 'Please provide Email for all of recipients.'
320321
],
321322
[
322-
'product_id: 1
323+
'product_id: 1
323324
sender: {
324325
name: ""
325326
email: "e@mail.com"
326327
message: "Lorem Ipsum"
327-
}
328+
}
328329
recipients: [
329330
{
330331
name: "Recipient Name 1"
@@ -337,12 +338,12 @@ public function sendFriendsErrorsDataProvider()
337338
]', 'Please provide Name of sender.'
338339
],
339340
[
340-
'product_id: 1
341+
'product_id: 1
341342
sender: {
342343
name: "Name"
343344
email: "e@mail.com"
344345
message: ""
345-
}
346+
}
346347
recipients: [
347348
{
348349
name: "Recipient Name 1"
@@ -404,9 +405,9 @@ private function getQuery(int $productId, string $recipients): string
404405
name: "Name"
405406
email: "e@mail.com"
406407
message: "Lorem Ipsum"
407-
}
408+
}
408409
recipients: [{$recipients}]
409-
}
410+
}
410411
) {
411412
sender {
412413
name

0 commit comments

Comments
 (0)