File tree Expand file tree Collapse file tree 4 files changed +52
-10
lines changed
Controller/Adminhtml/Report/Product
Test/Integration/Controller/Adminhtml/Report/Product Expand file tree Collapse file tree 4 files changed +52
-10
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- *
4- * Copyright © Magento, Inc. All rights reserved.
5- * See COPYING.txt for license details.
3+ * Copyright 2011 Adobe
4+ * All Rights Reserved.
65 */
76declare (strict_types=1 );
87
98namespace Magento \Reports \Controller \Adminhtml \Report \Product ;
109
1110use Magento \Backend \Block \Widget \Grid \ExportInterface ;
12- use Magento \Framework \App \Action \HttpPostActionInterface ;
11+ use Magento \Framework \App \Action \HttpGetActionInterface ;
1312use Magento \Framework \App \ResponseInterface ;
1413use Magento \Framework \App \Filesystem \DirectoryList ;
1514use Magento \Reports \Controller \Adminhtml \Report \Product ;
1615
17- class ExportSoldCsv extends Product implements HttpPostActionInterface
16+ class ExportSoldCsv extends Product implements HttpGetActionInterface
1817{
1918 /**
2019 * Authorization level of a basic admin session
Original file line number Diff line number Diff line change 11<?php
22/**
3- *
4- * Copyright © Magento, Inc. All rights reserved.
5- * See COPYING.txt for license details.
3+ * Copyright 2011 Adobe
4+ * All Rights Reserved.
65 */
76declare (strict_types=1 );
87
98namespace Magento \Reports \Controller \Adminhtml \Report \Product ;
109
1110use Magento \Backend \Block \Widget \Grid \ExportInterface ;
12- use Magento \Framework \App \Action \HttpPostActionInterface ;
11+ use Magento \Framework \App \Action \HttpGetActionInterface ;
1312use Magento \Framework \App \ResponseInterface ;
1413use Magento \Framework \App \Filesystem \DirectoryList ;
1514use Magento \Reports \Controller \Adminhtml \Report \Product ;
1615
17- class ExportSoldExcel extends Product implements HttpPostActionInterface
16+ class ExportSoldExcel extends Product implements HttpGetActionInterface
1817{
1918 /**
2019 * Authorization level of a basic admin session
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Copyright 2024 Adobe
4+ * All Rights Reserved.
5+ */
6+ declare (strict_types=1 );
7+
8+ namespace Magento \Reports \Test \Integration \Controller \Adminhtml \Report \Product ;
9+
10+ use Magento \TestFramework \TestCase \AbstractBackendController ;
11+
12+ /**
13+ * @magentoAppArea adminhtml
14+ */
15+ class ExportSoldCsvTest extends AbstractBackendController
16+ {
17+ public function testExecute () : void
18+ {
19+ $ this ->dispatch ('backend/reports/report_product/exportSoldCsv ' );
20+ $ this ->assertEquals (302 , $ this ->getResponse ()->getHttpResponseCode ());
21+ }
22+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Copyright 2024 Adobe
4+ * All Rights Reserved.
5+ */
6+ declare (strict_types=1 );
7+
8+ namespace Magento \Reports \Test \Integration \Controller \Adminhtml \Report \Product ;
9+
10+ use Magento \TestFramework \TestCase \AbstractBackendController ;
11+
12+ /**
13+ * @magentoAppArea adminhtml
14+ */
15+ class ExportSoldExcelTest extends AbstractBackendController
16+ {
17+ public function testExecute () : void
18+ {
19+ $ this ->dispatch ('backend/reports/report_product/exportSoldExcel ' );
20+ $ this ->assertEquals (302 , $ this ->getResponse ()->getHttpResponseCode ());
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments