Skip to content

Commit 7c8e4cf

Browse files
MC-31434: Customer Configurations: Create new account options
1 parent ee9bc9f commit 7c8e4cf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dev/tests/integration/testsuite/Magento/Customer/Controller/Account/CreatePostTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ public function testExistingEmailCreatePostAction(): void
165165
$this->dispatch('customer/account/createPost');
166166
$this->assertRedirect($this->stringContains('customer/account/create/'));
167167
$message = 'There is already an account with this email address.'
168-
. ' If you are sure that it is your email address, <a href=""%1"">click here</a> '
168+
. ' If you are sure that it is your email address, <a href="%1">click here</a> '
169169
. 'to get your password and access your account.';
170170
$url = 'http://localhost/index.php/customer/account/forgotpassword/';
171-
$this->assertSessionMessages($this->equalTo([__($message, $url)]), MessageInterface::TYPE_ERROR);
171+
$this->assertSessionMessages($this->equalTo([(string)__($message, $url)]), MessageInterface::TYPE_ERROR);
172172
}
173173

174174
/**
@@ -185,9 +185,9 @@ public function testRegisterCustomerWithEmailConfirmation(): void
185185
$this->dispatch('customer/account/createPost');
186186
$this->assertRedirect($this->stringContains('customer/account/index/'));
187187
$message = 'You must confirm your account.'
188-
. ' Please check your email for the confirmation link or <a href=""%1"">click here</a> for a new link.';
188+
. ' Please check your email for the confirmation link or <a href="%1">click here</a> for a new link.';
189189
$url = 'http://localhost/index.php/customer/account/confirmation/?email=test_example%40email.com';
190-
$this->assertSessionMessages($this->equalTo([__($message, $url)]), MessageInterface::TYPE_SUCCESS);
190+
$this->assertSessionMessages($this->equalTo([(string)__($message, $url)]), MessageInterface::TYPE_SUCCESS);
191191
/** @var CustomerInterface $customer */
192192
$customer = $this->customerRepository->get($email);
193193
$confirmation = $customer->getConfirmation();

dev/tests/integration/testsuite/Magento/Customer/Model/AccountManagement/CreateAccountTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ public function testCreateAccountWithConfiguredWelcomeNoPasswordEmail(): void
288288
}
289289

290290
/**
291+
* @magentoAppArea frontend
291292
* @magentoDataFixture Magento/Customer/_files/customer_confirmation_config_enable.php
292293
* @magentoDataFixture Magento/Customer/_files/customer_confirmation_email_template.php
293294
* @magentoConfigFixture current_store customer/create_account/email_identity custom1
@@ -311,6 +312,7 @@ public function testCreateAccountWithConfiguredConfirmationEmail(): void
311312
}
312313

313314
/**
315+
* @magentoAppArea frontend
314316
* @magentoDataFixture Magento/Customer/_files/customer_confirmation_config_enable.php
315317
* @magentoDataFixture Magento/Customer/_files/customer_confirmed_email_template.php
316318
* @magentoConfigFixture current_store customer/create_account/email_identity custom1

0 commit comments

Comments
 (0)