File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
app/code/Magento/Msrp/view/base/templates/product/price
dev/tests/unit/testsuite/Magento/Framework/Data/Helper
lib/internal/Magento/Framework/Data/Helper Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ if ($product->isSaleable()) {
38
38
$ product ,
39
39
['_query ' => [
40
40
\Magento \Framework \App \Action \Action::PARAM_NAME_URL_ENCODED =>
41
- $ this ->helper ('Magento\Framework\Url\Helper ' )->getEncodedUrl (
41
+ $ this ->helper ('Magento\Framework\Url\Helper\Data ' )->getEncodedUrl (
42
42
$ addToCartUrlGenerator ->getAddToCartUrl ($ product )
43
43
),
44
44
]]
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function testGetPostData()
28
28
'' ,
29
29
false
30
30
);
31
- $ urlHelper = $ this ->getMockBuilder ('Magento\Framework\Url\Helper ' )
31
+ $ urlHelper = $ this ->getMockBuilder ('Magento\Framework\Url\Helper\Data ' )
32
32
->disableOriginalConstructor ()->getMock ();
33
33
$ urlHelper ->expects ($ this ->once ())
34
34
->method ('getEncodedUrl ' )
Original file line number Diff line number Diff line change 10
10
namespace Magento \Framework \Data \Helper ;
11
11
12
12
use Magento \Framework \App \Helper \Context ;
13
+ use Magento \Framework \Url \Helper \Data as UrlHelper ;
13
14
14
15
class PostHelper extends \Magento \Framework \App \Helper \AbstractHelper
15
16
{
16
17
/**
17
- * @var \Magento\Framework\Url\Helper
18
+ * @var UrlHelper
18
19
*/
19
20
private $ urlHelper ;
20
21
21
22
public function __construct (
22
23
Context $ context ,
23
- \ Magento \ Framework \ Url \ Helper $ urlHelper
24
+ UrlHelper $ urlHelper
24
25
) {
25
26
$ this ->urlHelper = $ urlHelper ;
26
27
}
You can’t perform that action at this time.
0 commit comments