File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
app/code/Magento/Customer/Controller/Account
dev/tests/integration/testsuite/Magento/Customer/Controller Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2015 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
declare (strict_types=1 );
7
7
@@ -99,10 +99,7 @@ public function execute()
99
99
);
100
100
$ this ->messageManager ->addSuccessMessage (__ ('Please check your email for confirmation key. ' ));
101
101
return $ this ->getRedirect ('*/*/index ' , ['_secure ' => true ]);
102
- } catch (InvalidTransitionException $ e ) {
103
- $ this ->messageManager ->addSuccessMessage (__ ('This email does not require confirmation. ' ));
104
- return $ this ->getRedirect ('*/*/index ' , ['_secure ' => true ]);
105
- } catch (NoSuchEntityException $ e ) {
102
+ } catch (InvalidTransitionException | NoSuchEntityException $ e ) {
106
103
$ this ->messageManager ->addErrorMessage (__ ('Wrong email. ' ));
107
104
}
108
105
}
Original file line number Diff line number Diff line change @@ -254,14 +254,13 @@ public function testActiveUserConfirmationAction()
254
254
);
255
255
256
256
$ this ->dispatch ('customer/account/confirmation ' );
257
- $ this ->assertRedirect ($ this ->stringContains ('customer/account/index ' ));
258
257
$ this ->assertSessionMessages (
259
258
$ this ->equalTo (
260
259
[
261
- 'This email does not require confirmation . ' ,
260
+ 'Wrong email. ' ,
262
261
]
263
262
),
264
- MessageInterface::TYPE_SUCCESS
263
+ MessageInterface::TYPE_ERROR
265
264
);
266
265
}
267
266
You can’t perform that action at this time.
0 commit comments