Skip to content

Commit 0bede8b

Browse files
committed
ACP2E-3404: [GraphQL] Reset password email inconsistency between content and subject/link
1 parent 5e433c7 commit 0bede8b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

dev/tests/integration/testsuite/Magento/CustomerGraphQl/Model/Resolver/RequestPasswordResetEmailTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public function setUp(): void
7272
* ensuring alignment between content and subject in translated languages.
7373
*
7474
* @dataProvider customerOnFrenchStore
75-
* @param $requestFromStore
76-
* @param $subject
77-
* @param $message
75+
* @param string $requestFromStore
76+
* @param string $subject
77+
* @param string $message
7878
* @throws NoSuchEntityException
7979
*/
8080
#[
@@ -86,9 +86,9 @@ public function setUp(): void
8686
DataFixture(Customer::class, ['email' => 'customer@example.com', 'store_id' => '$store2.id$'], as: 'customer'),
8787
]
8888
public function testResetPasswordEmailRequestFromCustomStoreWhenCustomerIsOnCustomStore(
89-
$requestFromStore,
90-
$subject,
91-
$message
89+
string $requestFromStore,
90+
string $subject,
91+
string $message
9292
) {
9393
$this->assertResetPasswordEmailContent($requestFromStore, $subject, $message);
9494
}
@@ -98,9 +98,9 @@ public function testResetPasswordEmailRequestFromCustomStoreWhenCustomerIsOnCust
9898
* ensuring alignment between content and subject in translated languages.
9999
*
100100
* @dataProvider customerOnDefaultStore
101-
* @param $requestFromStore
102-
* @param $subject
103-
* @param $comment
101+
* @param string $requestFromStore
102+
* @param string $subject
103+
* @param string $comment
104104
* @throws NoSuchEntityException
105105
*/
106106
#[
@@ -112,9 +112,9 @@ public function testResetPasswordEmailRequestFromCustomStoreWhenCustomerIsOnCust
112112
DataFixture(Customer::class, ['email' => 'customer@example.com'], as: 'customer'),
113113
]
114114
public function testResetPasswordEmailRequestFromCustomStoreWhenCustomerIsOnDefaultStore(
115-
$requestFromStore,
116-
$subject,
117-
$comment
115+
string $requestFromStore,
116+
string $subject,
117+
string $comment
118118
) {
119119
$this->assertResetPasswordEmailContent($requestFromStore, $subject, $comment);
120120
}
@@ -123,12 +123,12 @@ public function testResetPasswordEmailRequestFromCustomStoreWhenCustomerIsOnDefa
123123
* Assert the consistency between the reset password email subject and content
124124
* when the request originates from different stores.
125125
*
126-
* @param $store
127-
* @param $subject
128-
* @param $message
126+
* @param string $store
127+
* @param string $subject
128+
* @param string $message
129129
* @throws NoSuchEntityException
130130
*/
131-
private function assertResetPasswordEmailContent($store, $subject, $message)
131+
private function assertResetPasswordEmailContent(string $store, string $subject, string $message)
132132
{
133133
$customer = $this->fixtures->get('customer');
134134
$email = $customer->getEmail();

0 commit comments

Comments
 (0)