@@ -189,7 +189,7 @@ public function testErrors(string $input, string $errorMessage)
189
189
sendEmailToFriend(
190
190
input: {
191
191
$ input
192
- }
192
+ }
193
193
) {
194
194
sender {
195
195
name
@@ -211,6 +211,7 @@ public function testErrors(string $input, string $errorMessage)
211
211
/**
212
212
* @magentoApiDataFixture Magento/Customer/_files/customer.php
213
213
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
214
+ * @magentoConfigFixture default_store sendfriend/email/enabled 1
214
215
* @magentoConfigFixture default_store sendfriend/email/max_per_hour 1
215
216
* @magentoApiDataFixture Magento/SendFriend/Fixtures/sendfriend_configuration.php
216
217
*/
@@ -283,12 +284,12 @@ public function sendFriendsErrorsDataProvider()
283
284
{
284
285
return [
285
286
[
286
- 'product_id: 1
287
+ 'product_id: 1
287
288
sender: {
288
289
name: "Name"
289
290
email: "e@mail.com"
290
291
message: "Lorem Ipsum"
291
- }
292
+ }
292
293
recipients: [
293
294
{
294
295
name: ""
@@ -301,12 +302,12 @@ public function sendFriendsErrorsDataProvider()
301
302
] ' , 'Please provide Name for all of recipients. '
302
303
],
303
304
[
304
- 'product_id: 1
305
+ 'product_id: 1
305
306
sender: {
306
307
name: "Name"
307
308
email: "e@mail.com"
308
309
message: "Lorem Ipsum"
309
- }
310
+ }
310
311
recipients: [
311
312
{
312
313
name: "Recipient Name 1"
@@ -319,12 +320,12 @@ public function sendFriendsErrorsDataProvider()
319
320
] ' , 'Please provide Email for all of recipients. '
320
321
],
321
322
[
322
- 'product_id: 1
323
+ 'product_id: 1
323
324
sender: {
324
325
name: ""
325
326
email: "e@mail.com"
326
327
message: "Lorem Ipsum"
327
- }
328
+ }
328
329
recipients: [
329
330
{
330
331
name: "Recipient Name 1"
@@ -337,12 +338,12 @@ public function sendFriendsErrorsDataProvider()
337
338
] ' , 'Please provide Name of sender. '
338
339
],
339
340
[
340
- 'product_id: 1
341
+ 'product_id: 1
341
342
sender: {
342
343
name: "Name"
343
344
email: "e@mail.com"
344
345
message: ""
345
- }
346
+ }
346
347
recipients: [
347
348
{
348
349
name: "Recipient Name 1"
@@ -404,9 +405,9 @@ private function getQuery(int $productId, string $recipients): string
404
405
name: "Name"
405
406
email: "e@mail.com"
406
407
message: "Lorem Ipsum"
407
- }
408
+ }
408
409
recipients: [ {$ recipients }]
409
- }
410
+ }
410
411
) {
411
412
sender {
412
413
name
0 commit comments