File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/Downloadable/Controller/Adminhtml/Downloadable/File
dev/tests/integration/testsuite/Magento/Downloadable/Controller/Adminhtml/Downloadable Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Downloadable \Controller \Adminhtml \Downloadable \File ;
7
7
8
- use Magento \Framework \App \Action \HttpGetActionInterface ;
8
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
9
9
use Magento \Framework \Controller \ResultFactory ;
10
10
11
11
/**
12
12
* Class Upload
13
13
*
14
14
* @package Magento\Downloadable\Controller\Adminhtml\Downloadable\File
15
15
*/
16
- class Upload extends \Magento \Downloadable \Controller \Adminhtml \Downloadable \File implements HttpGetActionInterface
16
+ class Upload extends \Magento \Downloadable \Controller \Adminhtml \Downloadable \File implements HttpPostActionInterface
17
17
{
18
18
/**
19
19
* @var \Magento\Downloadable\Model\Link
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ public function testUploadAction()
37
37
],
38
38
];
39
39
40
+ $ this ->getRequest ()->setMethod ('POST ' );
40
41
$ this ->dispatch ('backend/admin/downloadable_file/upload/type/samples ' );
41
42
$ body = $ this ->getResponse ()->getBody ();
42
43
$ result = Bootstrap::getObjectManager ()->get (Json::class)->unserialize ($ body );
@@ -64,6 +65,7 @@ public function testUploadProhibitedExtensions($fileName)
64
65
],
65
66
];
66
67
68
+ $ this ->getRequest ()->setMethod ('POST ' );
67
69
$ this ->dispatch ('backend/admin/downloadable_file/upload/type/samples ' );
68
70
$ body = $ this ->getResponse ()->getBody ();
69
71
$ result = Bootstrap::getObjectManager ()->get (Json::class)->unserialize ($ body );
You can’t perform that action at this time.
0 commit comments