File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
app/code/Magento/CustomerGraphQl/Model/Resolver
dev/tests/api-functional/testsuite/Magento/GraphQl/Customer Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function resolve(
101
101
}
102
102
103
103
if (true === $ this ->authentication ->isLocked ($ customer ->getId ())) {
104
- throw new GraphQlInputException (__ (" The current customer isn't authorized " ));
104
+ throw new GraphQlInputException (__ (' The account is locked ' ));
105
105
}
106
106
107
107
try {
@@ -110,7 +110,7 @@ public function resolve(
110
110
AccountManagement::EMAIL_RESET
111
111
);
112
112
} catch (LocalizedException $ e ) {
113
- throw new GraphQlInputException (__ (" Cannot reset customer password " ), $ e );
113
+ throw new GraphQlInputException (__ (' Cannot reset customer password ' ), $ e );
114
114
}
115
115
}
116
116
}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public function resolve(
108
108
}
109
109
110
110
if (true === $ this ->authentication ->isLocked ($ customer ->getId ())) {
111
- throw new GraphQlInputException (__ (" The current customer isn't authorized " ));
111
+ throw new GraphQlInputException (__ (' The account is locked ' ));
112
112
}
113
113
114
114
try {
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function testEmailAvailableInvalidValue()
95
95
* @magentoApiDataFixture Magento/Customer/_files/customer.php
96
96
*
97
97
* @expectedException \Exception
98
- * @expectedExceptionMessage The current customer isn't authorized
98
+ * @expectedExceptionMessage The account is locked
99
99
*/
100
100
public function testRequestPasswordResetEmailForLockCustomer ()
101
101
{
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ public function testNewPasswordEmptyValue()
203
203
* @magentoApiDataFixture Magento/Customer/_files/customer.php
204
204
*
205
205
* @expectedException \Exception
206
- * @expectedExceptionMessage The current customer isn't authorized
206
+ * @expectedExceptionMessage The account is locked
207
207
*
208
208
* @throws LocalizedException
209
209
* @throws NoSuchEntityException
You can’t perform that action at this time.
0 commit comments