Skip to content

Commit 3b51c81

Browse files
author
Tanniru, Murali(mtanniru)
committed
MAGETWO-51862: API-Functional: Automate test to create API Request to access other customer data using customer token.
- Restricted string length to be less than 120 characters. - Updated function to retrieve customer token. - Marked test as Rest Only. - Removed unused library.
1 parent 391f1e3 commit 3b51c81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerRepositoryTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ public function testInvalidCustomerUpdate()
159159
// get customer ID token
160160
/** @var \Magento\Integration\Api\CustomerTokenServiceInterface $customerTokenService */
161161
//$customerTokenService = $this->objectManager->create(CustomerTokenServiceInterface::class);
162-
$customerTokenService = Bootstrap::getObjectManager()->create('Magento\Integration\Api\CustomerTokenServiceInterface');
162+
$customerTokenService = Bootstrap::getObjectManager()->create(
163+
'Magento\Integration\Api\CustomerTokenServiceInterface'
164+
);
163165
$token = $customerTokenService->createCustomerAccessToken($firstCustomerData[Customer::EMAIL], 'test@123');
164166

165167
//Create second customer and update lastname.

0 commit comments

Comments
 (0)