Skip to content

Commit d983e25

Browse files
committed
magento/graphql-ce#486: Add customer account validation in Quote operations
1 parent a8ea439 commit d983e25

File tree

3 files changed

+0
-59
lines changed

3 files changed

+0
-59
lines changed

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -162,27 +162,6 @@ public function testChangePasswordIfNewPasswordIsEmpty()
162162
$this->graphQlMutation($query, [], '', $headerMap);
163163
}
164164

165-
/**
166-
* @magentoApiDataFixture Magento/GraphQl/Customer/_files/enable_customer_account_confirmation.php
167-
* @magentoApiDataFixture Magento/Customer/_files/customer.php
168-
* @expectedException \Exception
169-
* @expectedExceptionMessage This account isn't confirmed. Verify and try again.
170-
*/
171-
public function testChangePasswordIfAccountIsNotConfirmed()
172-
{
173-
$customerEmail = '[email protected]';
174-
$currentPassword = 'password';
175-
$newPassword = 'anotherPassword1';
176-
177-
/* get header map before setting the customer unconfirmed */
178-
$headerMap = $this->getCustomerAuthHeaders($customerEmail, $currentPassword);
179-
180-
$this->setCustomerConfirmation(1);
181-
$query = $this->getQuery($currentPassword, $newPassword);
182-
183-
$this->graphQlMutation($query, [], '', $headerMap);
184-
}
185-
186165
/**
187166
* @magentoApiDataFixture Magento/Customer/_files/customer.php
188167
* @expectedException \Exception

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,6 @@ public function testGetCustomerWithAddresses()
6666
$this->assertCustomerAddressesFields($customer, $response);
6767
}
6868

69-
/**
70-
* @magentoApiDataFixture Magento/Customer/_files/inactive_customer.php
71-
* @magentoApiDataFixture Magento/Customer/_files/customer_address.php
72-
* @magentoApiDataFixture Magento/Customer/_files/customer_confirmation_config_enable.php
73-
* @expectedException Exception
74-
* @expectedExceptionMessage The account sign-in was incorrect or your account is disabled temporarily.
75-
*/
76-
public function testGetCustomerAddressIfAccountIsNotConfirmed()
77-
{
78-
$query = $this->getQuery();
79-
80-
$userName = '[email protected]';
81-
$password = 'password';
82-
83-
$customerToken = $this->customerTokenService->createCustomerAccessToken($userName, $password);
84-
$headerMap = ['Authorization' => 'Bearer ' . $customerToken];
85-
86-
$this->graphQlQuery($query, [], '', $headerMap);
87-
}
88-
8969
/**
9070
* @magentoApiDataFixture Magento/Customer/_files/customer.php
9171
* @magentoApiDataFixture Magento/Customer/_files/customer_address.php

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -345,24 +345,6 @@ public function testUpdateAnotherCustomerAddress()
345345
$this->graphQlMutation($mutation, [], '', $this->getCustomerAuthHeaders($userName, $password));
346346
}
347347

348-
/**
349-
* @magentoApiDataFixture Magento/Customer/_files/inactive_customer.php
350-
* @magentoApiDataFixture Magento/Customer/_files/customer_address.php
351-
* @magentoApiDataFixture Magento/Customer/_files/customer_confirmation_config_enable.php
352-
* @expectedException Exception
353-
* @expectedExceptionMessage The account sign-in was incorrect or your account is disabled temporarily.
354-
*/
355-
public function testUpdateCustomerAddressIfAccountIsNotConfirmed()
356-
{
357-
$userName = '[email protected]';
358-
$password = 'password';
359-
$addressId = 1;
360-
361-
$mutation = $this->getMutation($addressId);
362-
363-
$this->graphQlMutation($mutation, [], '', $this->getCustomerAuthHeaders($userName, $password));
364-
}
365-
366348
/**
367349
* @magentoApiDataFixture Magento/Customer/_files/customer.php
368350
* @magentoApiDataFixture Magento/Customer/_files/customer_address.php

0 commit comments

Comments
 (0)