Skip to content

Commit dc39129

Browse files
committed
MAGETWO-97195: Automate with Integration test Confirmation email should be delivered to the customer when address contains '+' symbol
1 parent c258f98 commit dc39129

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dev/tests/integration/testsuite/Magento/Customer/Controller/AccountTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ private function clearCookieMessagesList()
851851
* @param string $content
852852
* @return string
853853
*/
854-
private function getConfirmationUrlFromMessageContent(string $content)
854+
private function getConfirmationUrlFromMessageContent(string $content): string
855855
{
856856
$confirmationUrl = '';
857857

dev/tests/integration/testsuite/Magento/Customer/_files/customer_confirmation_email_address_with_special_chars_rollback.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919

2020
/** @var CustomerRepositoryInterface $customerRepository */
2121
$customerRepository = Bootstrap::getObjectManager()->create(CustomerRepositoryInterface::class);
22-
$customer = $customerRepository->get('customer+confirmation@example.com');
2322

24-
if ($customer->getId()) {
23+
try {
24+
$customer = $customerRepository->get('customer+confirmation@example.com');
2525
$customerRepository->delete($customer);
26+
} catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
27+
// Customer with the specified email does not exist
2628
}
2729

2830
$registry->unregister('isSecureArea');

0 commit comments

Comments
 (0)