Skip to content

Commit f0026be

Browse files
committed
GraphQL-672: Refactoring the methods description
1 parent 6c88644 commit f0026be

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Customer\Api\AccountManagementInterface;
1111
use Magento\Customer\Model\CustomerAuthUpdate;
1212
use Magento\Customer\Model\CustomerRegistry;
13+
use Magento\Framework\Exception\AuthenticationException;
1314
use Magento\Framework\Exception\LocalizedException;
1415
use Magento\Framework\Exception\NoSuchEntityException;
1516
use Magento\Integration\Api\CustomerTokenServiceInterface;
@@ -202,6 +203,12 @@ private function lockCustomer(int $customerId): void
202203
$this->customerAuthUpdate->saveAuth($customerId);
203204
}
204205

206+
/**
207+
* @param $currentPassword
208+
* @param $newPassword
209+
*
210+
* @return string
211+
*/
205212
private function getChangePassQuery($currentPassword, $newPassword)
206213
{
207214
$query = <<<QUERY
@@ -224,7 +231,9 @@ private function getChangePassQuery($currentPassword, $newPassword)
224231
/**
225232
* @param string $email
226233
* @param string $password
234+
*
227235
* @return array
236+
* @throws AuthenticationException
228237
*/
229238
private function getCustomerAuthHeaders(string $email, string $password): array
230239
{

0 commit comments

Comments
 (0)