Skip to content

Commit 13c6b6e

Browse files
author
Krishna Kumar
committed
fixes for magento automation testing v1
1 parent 12d2523 commit 13c6b6e

File tree

6 files changed

+16
-13
lines changed

6 files changed

+16
-13
lines changed

app/code/Magento/LoginAsCustomerGraphQl/Model/LoginAsCustomer/CreateCustomerToken.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ class CreateCustomerToken
2424
/**
2525
* @var CustomerFactory
2626
*/
27-
private $customerFactory;
27+
private CustomerFactory $customerFactory;
2828

2929
/**
3030
* @var TokenFactory
3131
*/
32-
private $tokenModelFactory;
32+
private TokenFactory $tokenModelFactory;
3333

3434
/**
3535
* @var StoreManagerInterface
3636
*/
37-
private $storeManager;
37+
private StoreManagerInterface $storeManager;
3838

3939
/**
4040
* CreateCustomerToken constructor.

app/code/Magento/LoginAsCustomerGraphQl/Model/Resolver/RequestCustomerToken.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class RequestCustomerToken implements ResolverInterface
2828
/**
2929
* @var LoginAsCustomerConfig
3030
*/
31-
private $config;
31+
private LoginAsCustomerConfig $config;
3232

3333
/**
3434
* @var AuthorizationInterface
3535
*/
36-
private $authorization;
36+
private AuthorizationInterface $authorization;
3737

3838
/**
3939
* @var CreateCustomerToken
4040
*/
41-
private $createCustomerToken;
41+
private CreateCustomerToken $createCustomerToken;
4242

4343
/**
4444
* RequestCustomerToken constructor.

app/code/Magento/LoginAsCustomerGraphQl/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "magento/module-loginascustomergraphql",
2+
"name": "magento/module-login-as-customer-graph-ql",
33
"description": "Flexible login as a customer so a merchant or merchant admin can log into an end customer's account to assist them with their account.",
44
"type": "magento2-module",
55
"require": {},

app/code/Magento/LoginAsCustomerGraphQl/etc/module.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0" ?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
28
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
39
<module name="Magento_LoginAsCustomerGraphQl">
410
<sequence>

app/code/Magento/LoginAsCustomerGraphQl/etc/schema.graphqls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright © Magento, Inc. All rights reserved.
2+
# See COPYING.txt for license details.
3+
14
type Mutation {
25
generateCustomerTokenAsAdmin(
36
input: GenerateCustomerTokenAsAdminInput!

dev/tests/api-functional/testsuite/Magento/GraphQl/LoginAsCustomer/GenerateLoginCustomerTokenTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,6 @@ public function dataProviderInvalidInfo(): array
148148
'Zilker777',
149149
150150
'Customer email provided does not exist'
151-
],
152-
'empty_customer_email' => [
153-
'TestAdmin1',
154-
'Zilker777',
155-
'Specify the customer email value',
156-
'Customer email provided does not exist'
157151
]
158152
];
159153
}

0 commit comments

Comments
 (0)