Skip to content

Commit 6ad87fd

Browse files
author
Cari Spruiell
committed
Merge remote-tracking branch 'remotes/api/MAGETWO-43752-Static-test-ArgumentsTest-does-not-check-all-cases' into API-Bug-PR
2 parents 62208fb + ac3e355 commit 6ad87fd

File tree

15 files changed

+84
-35
lines changed

15 files changed

+84
-35
lines changed

app/code/Magento/Catalog/Model/CategoryLinkRepository.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function deleteByIds($categoryId, $sku)
8080
if (!isset($productPositions[$productID])) {
8181
throw new InputException(__('Category does not contain specified product'));
8282
}
83+
$backupPosition = $productPositions[$productID];
8384
unset($productPositions[$productID]);
8485

8586
$category->setPostedProducts($productPositions);
@@ -88,9 +89,12 @@ public function deleteByIds($categoryId, $sku)
8889
} catch (\Exception $e) {
8990
throw new CouldNotSaveException(
9091
__(
91-
'Could not save product "%1" with position %position to category %2',
92-
$product->getId(),
93-
$category->getId()
92+
'Could not save product "%product" with position %position to category %category',
93+
[
94+
"product" => $product->getId(),
95+
"position" => $backupPosition,
96+
"category" => $category->getId()
97+
]
9498
),
9599
$e
96100
);

app/code/Magento/Catalog/Test/Unit/Model/CategoryLinkRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testDeleteByIds()
145145

146146
/**
147147
* @expectedException \Magento\Framework\Exception\CouldNotSaveException
148-
* @expectedExceptionMessage Could not save product "55" with position %position to category 42
148+
* @expectedExceptionMessage Could not save product "55" with position 1 to category 42
149149
*/
150150
public function testDeleteByIdsWithCouldNotSaveException()
151151
{

app/code/Magento/Reports/i18n/de_DE.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Statistics,Statistik
170170
"Most Viewed Products Report","Most Viewed Products Report"
171171
"Show By","Show By"
172172
"Select Date","Select Date"
173-
"Customers that have wish list: %1%","Customers that have wish list: %1%"
173+
"Customers that have wish list: %1","Customers that have wish list: %1"
174174
"Number of wish lists: %1","Number of wish lists: %1"
175175
"Number of items bought from a wish list: %1","Number of items bought from a wish list: %1"
176176
"Number of times wish lists have been shared (emailed): %1","Number of times wish lists have been shared (emailed): %1"

app/code/Magento/Reports/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Statistics,Statistics
170170
"Most Viewed Products Report","Most Viewed Products Report"
171171
"Show By","Show By"
172172
"Select Date","Select Date"
173-
"Customers that have wish list: %1%","Customers that have wish list: %1%"
173+
"Customers that have wish list: %1","Customers that have wish list: %1"
174174
"Number of wish lists: %1","Number of wish lists: %1"
175175
"Number of items bought from a wish list: %1","Number of items bought from a wish list: %1"
176176
"Number of times wish lists have been shared (emailed): %1","Number of times wish lists have been shared (emailed): %1"

app/code/Magento/Reports/i18n/es_ES.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Statistics,Estadísticas
170170
"Most Viewed Products Report","Most Viewed Products Report"
171171
"Show By","Show By"
172172
"Select Date","Select Date"
173-
"Customers that have wish list: %1%","Customers that have wish list: %1%"
173+
"Customers that have wish list: %1","Customers that have wish list: %1"
174174
"Number of wish lists: %1","Number of wish lists: %1"
175175
"Number of items bought from a wish list: %1","Number of items bought from a wish list: %1"
176176
"Number of times wish lists have been shared (emailed): %1","Number of times wish lists have been shared (emailed): %1"

app/code/Magento/Reports/i18n/fr_FR.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Statistics,Statistiques
170170
"Most Viewed Products Report","Most Viewed Products Report"
171171
"Show By","Show By"
172172
"Select Date","Select Date"
173-
"Customers that have wish list: %1%","Customers that have wish list: %1%"
173+
"Customers that have wish list: %1","Customers that have wish list: %1"
174174
"Number of wish lists: %1","Number of wish lists: %1"
175175
"Number of items bought from a wish list: %1","Number of items bought from a wish list: %1"
176176
"Number of times wish lists have been shared (emailed): %1","Number of times wish lists have been shared (emailed): %1"

app/code/Magento/Reports/i18n/nl_NL.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Statistics,Statistieken
170170
"Most Viewed Products Report","Most Viewed Products Report"
171171
"Show By","Show By"
172172
"Select Date","Select Date"
173-
"Customers that have wish list: %1%","Customers that have wish list: %1%"
173+
"Customers that have wish list: %1","Customers that have wish list: %1"
174174
"Number of wish lists: %1","Number of wish lists: %1"
175175
"Number of items bought from a wish list: %1","Number of items bought from a wish list: %1"
176176
"Number of times wish lists have been shared (emailed): %1","Number of times wish lists have been shared (emailed): %1"

app/code/Magento/Reports/i18n/pt_BR.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Statistics,Estatísticas
170170
"Most Viewed Products Report","Most Viewed Products Report"
171171
"Show By","Show By"
172172
"Select Date","Select Date"
173-
"Customers that have wish list: %1%","Customers that have wish list: %1%"
173+
"Customers that have wish list: %1","Customers that have wish list: %1"
174174
"Number of wish lists: %1","Number of wish lists: %1"
175175
"Number of items bought from a wish list: %1","Number of items bought from a wish list: %1"
176176
"Number of times wish lists have been shared (emailed): %1","Number of times wish lists have been shared (emailed): %1"

app/code/Magento/Reports/i18n/zh_Hans_CN.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Statistics,状态
170170
"Most Viewed Products Report","Most Viewed Products Report"
171171
"Show By","Show By"
172172
"Select Date","Select Date"
173-
"Customers that have wish list: %1%","Customers that have wish list: %1%"
173+
"Customers that have wish list: %1","Customers that have wish list: %1"
174174
"Number of wish lists: %1","Number of wish lists: %1"
175175
"Number of items bought from a wish list: %1","Number of items bought from a wish list: %1"
176176
"Number of times wish lists have been shared (emailed): %1","Number of times wish lists have been shared (emailed): %1"

app/code/Magento/Reports/view/adminhtml/templates/report/wishlist.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="switcher f-left" style="margin: 10px 10px 10px 0px; padding:15px;">
1212
<?php
13-
/* @escapeNotVerified */ echo __('Customers that have Wish List: %1%', $block->getCustomerWithWishlist())
13+
/* @escapeNotVerified */ echo __('Customers that have Wish List: %1', $block->getCustomerWithWishlist())
1414
?>
1515
</div>
1616

0 commit comments

Comments
 (0)