File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
Test/Unit/ViewModel/Product
view/frontend/web/js/product
dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function testIsCategoryUsedInProductUrl()
95
95
* @param string $expectedName
96
96
* @return void
97
97
*/
98
- public function testGetProductName ($ product , $ expectedName )
98
+ public function testGetProductName ($ product , string $ expectedName )
99
99
{
100
100
$ this ->catalogHelper ->expects ($ this ->atLeastOnce ())
101
101
->method ('getProduct ' )
Original file line number Diff line number Diff line change @@ -88,13 +88,9 @@ define([
88
88
* @private
89
89
*/
90
90
_getCategoryCrumb : function ( menuItem ) {
91
- var categoryId ,
92
- categoryName ,
93
- categoryUrl ;
94
-
95
- categoryId = / ( \d + ) / i. exec ( menuItem . attr ( 'id' ) ) [ 0 ] ;
96
- categoryName = menuItem . text ( ) ;
97
- categoryUrl = menuItem . attr ( 'href' ) ;
91
+ var categoryId = / ( \d + ) / i. exec ( menuItem . attr ( 'id' ) ) [ 0 ] ,
92
+ categoryName = menuItem . text ( ) ,
93
+ categoryUrl = menuItem . attr ( 'href' ) ;
98
94
99
95
return {
100
96
'name' : 'category' + categoryId ,
Original file line number Diff line number Diff line change @@ -35,12 +35,11 @@ public function processAssert(
35
35
BrowserInterface $ browser ,
36
36
CatalogProductSimple $ product
37
37
) {
38
- $ categories = is_object ($ product ->getDataFieldConfig ('category_ids ' )['source ' ]) ?
39
- $ product ->getDataFieldConfig ('category_ids ' )['source ' ]->getCategories ()
38
+ $ categories = is_object ($ product ->getDataFieldConfig ('category_ids ' )['source ' ])
39
+ ? $ product ->getDataFieldConfig ('category_ids ' )['source ' ]->getCategories ()
40
40
: [];
41
41
42
42
if (!empty ($ categories )) {
43
-
44
43
/** @var Category $category */
45
44
foreach ($ categories as $ category ) {
46
45
$ cmsIndex ->open ();
You can’t perform that action at this time.
0 commit comments