File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -169,8 +169,7 @@ public function getAddToCartUrl($product, $additional = [])
169
169
}
170
170
171
171
/**
172
- * Get JSON encoded configuration array which can be used for JS dynamic
173
- * price calculation depending on product options
172
+ * Get JSON encoded configuration which can be used for JS dynamic price calculation depending on product options
174
173
*
175
174
* @return string
176
175
*/
@@ -262,6 +261,7 @@ public function isStartCustomization()
262
261
263
262
/**
264
263
* Get default qty - either as preconfigured, or as 1.
264
+ *
265
265
* Also restricts it by minimal qty.
266
266
*
267
267
* @param null|\Magento\Catalog\Model\Product $product
Original file line number Diff line number Diff line change @@ -65,24 +65,19 @@ public function testGetIdentities()
65
65
{
66
66
$ productTags = ['cat_p_1 ' ];
67
67
$ product = $ this ->createMock (\Magento \Catalog \Model \Product::class);
68
- $ category = $ this ->createMock (\Magento \Catalog \Model \Category::class);
69
68
70
69
$ product ->expects ($ this ->once ())
71
70
->method ('getIdentities ' )
72
71
->will ($ this ->returnValue ($ productTags ));
73
- $ category ->expects ($ this ->once ())
74
- ->method ('getId ' )
75
- ->will ($ this ->returnValue (1 ));
76
72
$ this ->registryMock ->expects ($ this ->any ())
77
73
->method ('registry ' )
78
74
->will (
79
75
$ this ->returnValueMap (
80
76
[
81
77
['product ' , $ product ],
82
- ['current_category ' , $ category ],
83
78
]
84
79
)
85
80
);
86
- $ this ->assertEquals ([ ' cat_p_1 ' , ' cat_c_1 ' ] , $ this ->view ->getIdentities ());
81
+ $ this ->assertEquals ($ productTags , $ this ->view ->getIdentities ());
87
82
}
88
83
}
You can’t perform that action at this time.
0 commit comments