File tree 4 files changed +52
-10
lines changed
Controller/Adminhtml/Report/Product
Test/Integration/Controller/Adminhtml/Report/Product
4 files changed +52
-10
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- *
4
- * Copyright © Magento, Inc. All rights reserved.
5
- * See COPYING.txt for license details.
3
+ * Copyright 2011 Adobe
4
+ * All Rights Reserved.
6
5
*/
7
6
declare (strict_types=1 );
8
7
9
8
namespace Magento \Reports \Controller \Adminhtml \Report \Product ;
10
9
11
10
use Magento \Backend \Block \Widget \Grid \ExportInterface ;
12
- use Magento \Framework \App \Action \HttpPostActionInterface ;
11
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
13
12
use Magento \Framework \App \ResponseInterface ;
14
13
use Magento \Framework \App \Filesystem \DirectoryList ;
15
14
use Magento \Reports \Controller \Adminhtml \Report \Product ;
16
15
17
- class ExportSoldCsv extends Product implements HttpPostActionInterface
16
+ class ExportSoldCsv extends Product implements HttpGetActionInterface
18
17
{
19
18
/**
20
19
* Authorization level of a basic admin session
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- *
4
- * Copyright © Magento, Inc. All rights reserved.
5
- * See COPYING.txt for license details.
3
+ * Copyright 2011 Adobe
4
+ * All Rights Reserved.
6
5
*/
7
6
declare (strict_types=1 );
8
7
9
8
namespace Magento \Reports \Controller \Adminhtml \Report \Product ;
10
9
11
10
use Magento \Backend \Block \Widget \Grid \ExportInterface ;
12
- use Magento \Framework \App \Action \HttpPostActionInterface ;
11
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
13
12
use Magento \Framework \App \ResponseInterface ;
14
13
use Magento \Framework \App \Filesystem \DirectoryList ;
15
14
use Magento \Reports \Controller \Adminhtml \Report \Product ;
16
15
17
- class ExportSoldExcel extends Product implements HttpPostActionInterface
16
+ class ExportSoldExcel extends Product implements HttpGetActionInterface
18
17
{
19
18
/**
20
19
* 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