@@ -20,14 +20,9 @@ class SendFriendTest extends GraphQlAbstract
20
20
* @var SendFriendFactory
21
21
*/
22
22
private $ sendFriendFactory ;
23
- /**
24
- * @var DataObjectFactory
25
- */
26
- private $ dataObjectFactory ;
27
23
28
24
protected function setUp ()
29
25
{
30
- $ this ->dataObjectFactory = Bootstrap::getObjectManager ()->get (DataObjectFactory::class);
31
26
$ this ->sendFriendFactory = Bootstrap::getObjectManager ()->get (SendFriendFactory::class);
32
27
}
33
28
@@ -120,7 +115,9 @@ public function testSendWithoutExistProduct()
120
115
}
121
116
QUERY ;
122
117
$ this ->expectException (\Exception::class);
123
- $ this ->expectExceptionMessage ('The product that was requested doesn \'t exist. Verify the product and try again. ' );
118
+ $ this ->expectExceptionMessage (
119
+ 'The product that was requested doesn \'t exist. Verify the product and try again. '
120
+ );
124
121
$ this ->graphQlQuery ($ query );
125
122
}
126
123
@@ -191,7 +188,7 @@ public function testMaxSendEmailToFriend()
191
188
/**
192
189
* @magentoApiDataFixture Magento/SendFriend/_files/product_simple.php
193
190
*/
194
- public function testSendWithoutRecipentsName ()
191
+ public function testSendWithoutRecipientName ()
195
192
{
196
193
$ query =
197
194
<<<QUERY
@@ -236,7 +233,7 @@ public function testSendWithoutRecipentsName()
236
233
/**
237
234
* @magentoApiDataFixture Magento/SendFriend/_files/product_simple.php
238
235
*/
239
- public function testSendWithoutRecipentsEmail ()
236
+ public function testSendWithoutRecipientEmail ()
240
237
{
241
238
$ query =
242
239
<<<QUERY
@@ -460,7 +457,9 @@ public function testLimitMessagesPerHour()
460
457
}
461
458
QUERY ;
462
459
$ this ->expectException (\Exception::class);
463
- $ this ->expectExceptionMessage ("You can't send messages more than {$ sendFriend ->getMaxSendsToFriend ()} times an hour. " );
460
+ $ this ->expectExceptionMessage (
461
+ "You can't send messages more than {$ sendFriend ->getMaxSendsToFriend ()} times an hour. "
462
+ );
464
463
465
464
for ($ i = 0 ; $ i <= $ sendFriend ->getMaxSendsToFriend () + 1 ; $ i ++) {
466
465
$ this ->graphQlQuery ($ query );
0 commit comments