Skip to content

Commit 3acb589

Browse files
committed
Unit test cases added
1 parent 25430fc commit 3acb589

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/code/Magento/CustomerGraphQl/Model/Context/AddUserInfoToContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Magento\GraphQl\Model\Query\UserContextParametersProcessorInterface;
1616

1717
/**
18-
* @inheritdoc
18+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1919
*/
2020
class AddUserInfoToContext implements UserContextParametersProcessorInterface
2121
{

app/code/Magento/CustomerGraphQl/Plugin/ClearCustomerSessionAfterRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
use Magento\Customer\Model\ResourceModel\CustomerRepository;
1212
use Magento\Customer\Model\Session as CustomerSession;
1313
use Magento\CustomerGraphQl\Model\Context\AddUserInfoToContext;
14+
use Magento\Framework\App\ObjectManager;
1415
use Magento\Framework\App\ResponseInterface;
1516
use Magento\Framework\Exception\LocalizedException;
1617
use Magento\Framework\Exception\NoSuchEntityException;
1718
use Magento\GraphQl\Controller\GraphQl as GraphQlController;
1819

1920
/**
2021
* Clear the user data out of the session object before returning the GraphQL response
22+
*
23+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
2124
*/
2225
class ClearCustomerSessionAfterRequest
2326
{

0 commit comments

Comments
 (0)