Skip to content

Commit 9d9faae

Browse files
33383 apply suggestions
1 parent aba7e20 commit 9d9faae

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

app/code/Magento/CustomerGraphQl/Model/Resolver/DeleteCustomer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
use Magento\CustomerGraphQl\Model\Customer\DeleteCustomer as DeleteCustomerModel;
1111
use Magento\CustomerGraphQl\Model\Customer\GetCustomer;
12-
use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException;
13-
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
1412
use Magento\Framework\GraphQl\Config\Element\Field;
13+
use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException;
1514
use Magento\Framework\GraphQl\Query\ResolverInterface;
15+
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
1616
use Magento\Framework\Registry;
1717
use Magento\GraphQl\Model\Query\ContextInterface;
1818

@@ -48,7 +48,7 @@ public function __construct(
4848
) {
4949
$this->getCustomer = $getCustomer;
5050
$this->deleteCustomer = $deleteCustomer;
51-
$this->registry =$registry;
51+
$this->registry = $registry;
5252
}
5353

5454
/**

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/DeleteCustomerTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\Integration\Api\CustomerTokenServiceInterface;
1414

1515
/**
16-
* Delete custom tests
16+
* Delete customer tests
1717
*/
1818
class DeleteCustomerTest extends GraphQlAbstract
1919
{
@@ -27,7 +27,6 @@ class DeleteCustomerTest extends GraphQlAbstract
2727
*/
2828
protected function setUp(): void
2929
{
30-
parent::setUp();
3130
$this->customerTokenService = Bootstrap::getObjectManager()->get(CustomerTokenServiceInterface::class);
3231
}
3332

@@ -62,7 +61,9 @@ public function testDeleteCustomerIfUserIsNotAuthorized(): void
6261
public function testDeleteCustomerIfAccountIsLocked(): void
6362
{
6463
$this->expectException(\Exception::class);
65-
$this->expectExceptionMessage('The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later');
64+
$this->expectExceptionMessage(
65+
'The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later'
66+
);
6667
$this->graphQlMutation($this->getMutation(), [], '', $this->getHeaderMap());
6768
}
6869

0 commit comments

Comments
 (0)