Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 6da7a67

Browse files
committed
Optimize code. Optimize imports.
Signed-off-by: Tomash Khamlai <[email protected]>
1 parent b52c14e commit 6da7a67

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ class GetCustomerTest extends GraphQlAbstract
3232
*/
3333
private $customerAuthUpdate;
3434

35-
/**
36-
* @var AccountManagementInterface
37-
*/
38-
private $accountManagement;
39-
4035
/**
4136
* @var CustomerRepositoryInterface
4237
*/
@@ -47,7 +42,6 @@ protected function setUp()
4742
parent::setUp();
4843

4944
$this->customerTokenService = Bootstrap::getObjectManager()->get(CustomerTokenServiceInterface::class);
50-
$this->accountManagement = Bootstrap::getObjectManager()->get(AccountManagementInterface::class);
5145
$this->customerRegistry = Bootstrap::getObjectManager()->get(CustomerRegistry::class);
5246
$this->customerAuthUpdate = Bootstrap::getObjectManager()->get(CustomerAuthUpdate::class);
5347
$this->customerRepository = Bootstrap::getObjectManager()->get(CustomerRepositoryInterface::class);
@@ -139,11 +133,12 @@ public function testGetCustomerIfAccountIsLocked()
139133
*/
140134
public function testAccountIsNotConfirmed()
141135
{
142-
$confirmation_required = $this->accountManagement::ACCOUNT_CONFIRMATION_REQUIRED;
143136
$customerEmail = '[email protected]';
144137
$currentPassword = 'password';
145138
$headersMap = $this->getCustomerAuthHeaders($customerEmail, $currentPassword);
146-
$customer = $this->customerRepository->getById(1)->setConfirmation($confirmation_required);
139+
$customer = $this->customerRepository->getById(1)->setConfirmation(
140+
AccountManagementInterface::ACCOUNT_CONFIRMATION_REQUIRED
141+
);
147142
$this->customerRepository->save($customer);
148143
$query = <<<QUERY
149144
query {

0 commit comments

Comments
 (0)