Skip to content

Commit

Permalink
ACP2E-3431: Products Ordered report is not exporting. 404 error instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
o-iegorov committed Nov 15, 2024
1 parent 42f713f commit c9e467b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Reports\Test\Integration\Controller\Adminhtml\Report\Product;

use Magento\TestFramework\TestCase\AbstractBackendController;

/**
* @magentoAppArea adminhtml
*/
class ExportSoldCsvTest extends AbstractBackendController
{
public function testExecute()
{
$this->dispatch('backend/reports/report_product/exportSoldCsv');
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Reports\Test\Integration\Controller\Adminhtml\Report\Product;

use Magento\TestFramework\TestCase\AbstractBackendController;

/**
* @magentoAppArea adminhtml
*/
class ExportSoldExcelTest extends AbstractBackendController
{
public function testExecute()
{
$this->dispatch('backend/reports/report_product/exportSoldExcel');
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
}
}

0 comments on commit c9e467b

Please sign in to comment.