Skip to content

Commit c3845db

Browse files
author
Vitaliy Boyko
committed
graphQl-263: removed unused param and static fixes
1 parent 843bf9f commit c3845db

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,9 @@ class SendFriendTest extends GraphQlAbstract
2020
* @var SendFriendFactory
2121
*/
2222
private $sendFriendFactory;
23-
/**
24-
* @var DataObjectFactory
25-
*/
26-
private $dataObjectFactory;
2723

2824
protected function setUp()
2925
{
30-
$this->dataObjectFactory = Bootstrap::getObjectManager()->get(DataObjectFactory::class);
3126
$this->sendFriendFactory = Bootstrap::getObjectManager()->get(SendFriendFactory::class);
3227
}
3328

@@ -120,7 +115,9 @@ public function testSendWithoutExistProduct()
120115
}
121116
QUERY;
122117
$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+
);
124121
$this->graphQlQuery($query);
125122
}
126123

@@ -191,7 +188,7 @@ public function testMaxSendEmailToFriend()
191188
/**
192189
* @magentoApiDataFixture Magento/SendFriend/_files/product_simple.php
193190
*/
194-
public function testSendWithoutRecipentsName()
191+
public function testSendWithoutRecipientName()
195192
{
196193
$query =
197194
<<<QUERY
@@ -236,7 +233,7 @@ public function testSendWithoutRecipentsName()
236233
/**
237234
* @magentoApiDataFixture Magento/SendFriend/_files/product_simple.php
238235
*/
239-
public function testSendWithoutRecipentsEmail()
236+
public function testSendWithoutRecipientEmail()
240237
{
241238
$query =
242239
<<<QUERY
@@ -460,7 +457,9 @@ public function testLimitMessagesPerHour()
460457
}
461458
QUERY;
462459
$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+
);
464463

465464
for ($i = 0; $i <= $sendFriend->getMaxSendsToFriend() + 1; $i++) {
466465
$this->graphQlQuery($query);

0 commit comments

Comments
 (0)