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

Commit

Permalink
Optimize code. Optimize imports.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomash Khamlai <[email protected]>
  • Loading branch information
TomashKhamlai committed Oct 11, 2019
1 parent b52c14e commit 6da7a67
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ class GetCustomerTest extends GraphQlAbstract
*/
private $customerAuthUpdate;

/**
* @var AccountManagementInterface
*/
private $accountManagement;

/**
* @var CustomerRepositoryInterface
*/
Expand All @@ -47,7 +42,6 @@ protected function setUp()
parent::setUp();

$this->customerTokenService = Bootstrap::getObjectManager()->get(CustomerTokenServiceInterface::class);
$this->accountManagement = Bootstrap::getObjectManager()->get(AccountManagementInterface::class);
$this->customerRegistry = Bootstrap::getObjectManager()->get(CustomerRegistry::class);
$this->customerAuthUpdate = Bootstrap::getObjectManager()->get(CustomerAuthUpdate::class);
$this->customerRepository = Bootstrap::getObjectManager()->get(CustomerRepositoryInterface::class);
Expand Down Expand Up @@ -139,11 +133,12 @@ public function testGetCustomerIfAccountIsLocked()
*/
public function testAccountIsNotConfirmed()
{
$confirmation_required = $this->accountManagement::ACCOUNT_CONFIRMATION_REQUIRED;
$customerEmail = '[email protected]';
$currentPassword = 'password';
$headersMap = $this->getCustomerAuthHeaders($customerEmail, $currentPassword);
$customer = $this->customerRepository->getById(1)->setConfirmation($confirmation_required);
$customer = $this->customerRepository->getById(1)->setConfirmation(
AccountManagementInterface::ACCOUNT_CONFIRMATION_REQUIRED
);
$this->customerRepository->save($customer);
$query = <<<QUERY
query {
Expand Down

0 comments on commit 6da7a67

Please sign in to comment.