Skip to content

Commit 9a577a8

Browse files
author
Natalia Momotenko
committed
MAGETWO-36132: Update Content in Magento 2 by Modules - part 4
1 parent 3b67471 commit 9a577a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Wishlist/Controller/Index/Send.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function execute()
150150
$error = __('Please enter an email address.');
151151
} else {
152152
if (count($emails) > $emailsLeft) {
153-
$error = __('This Wish List can be shared %1 more times.', $emailsLeft);
153+
$error = __('This wish list can be shared %1 more times.', $emailsLeft);
154154
} else {
155155
foreach ($emails as $index => $email) {
156156
$email = trim($email);

app/code/Magento/Wishlist/Test/Unit/Controller/Index/SendTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,10 @@ public function dataProviderExecuteWithError()
374374
{
375375
return [
376376
['test text', 1, 'user1@example.com', 1, 0, '', 'Message length must not exceed 1 symbols'],
377-
['test text', 100, null, 1, 0, '', 'Email address can\'t be empty.'],
378-
['test text', 100, '', 1, 0, '', 'Email address can\'t be empty.'],
379-
['test text', 100, 'user1@example.com', 1, 1, '', 'This wishlist can be shared 0 more times.'],
380-
['test text', 100, 'u1@example.com, u2@example.com', 3, 2, '', 'This wishlist can be shared 1 more times.'],
377+
['test text', 100, null, 1, 0, '', 'Please enter an email address.'],
378+
['test text', 100, '', 1, 0, '', 'Please enter an email address.'],
379+
['test text', 100, 'user1@example.com', 1, 1, '', 'This wish list can be shared 0 more times.'],
380+
['test text', 100, 'u1@example.com, u2@example.com', 3, 2, '', 'This wish list can be shared 1 more times.'],
381381
['test text', 100, 'wrongEmailAddress', 1, 0, '', 'Please input a valid email address.'],
382382
['test text', 100, 'user1@example.com, wrongEmailAddress', 2, 0, '', 'Please input a valid email address.'],
383383
['test text', 100, 'wrongEmailAddress, user2@example.com', 2, 0, '', 'Please input a valid email address.'],

0 commit comments

Comments
 (0)