Skip to content

Commit b32b83e

Browse files
committed
Fixed static test failures
1 parent 9e7ca59 commit b32b83e

File tree

2 files changed

+4
-3
lines changed
  • app/code/Magento/Sitemap

2 files changed

+4
-3
lines changed

app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Save extends Sitemap implements HttpPostActionInterface
2828
/**
2929
* Maximum length of sitemap filename
3030
*/
31-
const MAX_FILENAME_LENGTH = 32;
31+
public const MAX_FILENAME_LENGTH = 32;
3232

3333
/**
3434
* @var StringLength

app/code/Magento/Sitemap/Test/Unit/Controller/Adminhtml/Sitemap/DeleteTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
use Magento\Backend\App\Action\Context;
1111
use Magento\Backend\Helper\Data;
1212
use Magento\Backend\Model\Session;
13-
use Magento\Backend\Model\View\Result\Redirect;
1413
use Magento\Framework\App\ActionFlag;
1514
use Magento\Framework\App\RequestInterface;
1615
use Magento\Framework\App\ResponseInterface;
17-
use Magento\Framework\Controller\ResultFactory;
1816
use Magento\Framework\Filesystem;
1917
use Magento\Framework\HTTP\PhpEnvironment\Request;
2018
use Magento\Framework\Message\ManagerInterface;
@@ -24,6 +22,9 @@
2422
use Magento\Sitemap\Model\SitemapFactory;
2523
use PHPUnit\Framework\TestCase;
2624

25+
/**
26+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27+
*/
2728
class DeleteTest extends TestCase
2829
{
2930
/**

0 commit comments

Comments
 (0)