File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
app/code/Magento/ImportExport
Block/Adminhtml/Grid/Column/Renderer
Test/Unit/Block/Adminhtml/Grid/Column/Renderer Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Download extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Text
21
21
public function _getValue (\Magento \Framework \DataObject $ row )
22
22
{
23
23
return '<p> ' . $ this ->escapeHtml ($ row ->getData ('imported_file ' )) . '</p><a href=" '
24
- . $ this ->escapeUrl ( $ this -> getUrl ('*/*/download ' , ['filename ' => $ row ->getData ('imported_file ' )]) ) . '"> '
24
+ . $ this ->getUrl ('*/*/download ' , ['filename ' => $ row ->getData ('imported_file ' )]) . '"> '
25
25
. $ this ->escapeHtml (__ ('Download ' ))
26
26
. '</a> ' ;
27
27
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function _getValue(\Magento\Framework\DataObject $row)
23
23
$ result = '' ;
24
24
if ($ row ->getData ('error_file ' ) != '' ) {
25
25
$ result = '<p> ' . $ this ->escapeHtml ($ row ->getData ('error_file ' )) . '</p><a href=" '
26
- . $ this ->escapeUrl ( $ this -> getUrl ('*/*/download ' , ['filename ' => $ row ->getData ('error_file ' )]) ) . '"> '
26
+ . $ this ->getUrl ('*/*/download ' , ['filename ' => $ row ->getData ('error_file ' )]) . '"> '
27
27
. $ this ->escapeHtml (__ ('Download ' ))
28
28
. '</a> ' ;
29
29
}
Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ public function testGetValue()
71
71
->method ('escapeHtml ' )
72
72
->with ('file.csv ' )
73
73
->willReturn ('file.csv ' );
74
- $ this ->escaperMock ->expects ($ this ->once ())->method ('escapeUrl ' )->willReturn ('url ' );
75
- $ this ->escaperMock ->expects ($ this ->at (2 ))
74
+ $ this ->escaperMock ->expects ($ this ->at (1 ))
76
75
->method ('escapeHtml ' )
77
76
->with ('Download ' )
78
77
->willReturn ('Download ' );
You can’t perform that action at this time.
0 commit comments