Skip to content

Commit 9eca6fd

Browse files
committed
MAGETWO-92931: HTML entities in product name do not display properly in breadcrumb
- fix unit test
1 parent dab6b20 commit 9eca6fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Catalog/Test/Unit/ViewModel/Product/BreadcrumbsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ public function productJsonEncodeDataProvider() : array
166166
],
167167
[
168168
$this->getObjectManager()->getObject(Product::class, ['data' => ['name' => 'Test \'abc\'']]),
169-
'{"breadcrumbs":{"categoryUrlSuffix":".\"html","userCategoryPathInUrl":0,"product":"Test 'abc'"}}'
169+
'{"breadcrumbs":'
170+
. '{"categoryUrlSuffix":".\"html","userCategoryPathInUrl":0,"product":"Test 'abc'"}}'
170171
],
171172
];
172173
}

0 commit comments

Comments
 (0)