Skip to content

Commit 68e75ed

Browse files
committed
Fixed static tests
1 parent 8132d97 commit 68e75ed

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

app/code/Magento/MediaGallery/Plugin/Product/Gallery/Processor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public function __construct(
5151
* @param string $file
5252
*
5353
* @return ProcessorSubject
54+
*
55+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5456
*/
5557
public function afterRemoveImage(
5658
ProcessorSubject $subject,

app/code/Magento/MediaGallery/Plugin/Wysiwyg/Images/Storage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public function __construct(
7070
*
7171
* @return StorageSubject
7272
* @throws ValidatorException
73+
*
74+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
7375
*/
7476
public function afterDeleteFile(StorageSubject $subject, StorageSubject $result, $target): StorageSubject
7577
{

app/code/Magento/MediaGallery/Test/Unit/Model/Asset/Command/DeleteByPathTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
namespace Magento\MediaGallery\Test\Unit\Model\Asset\Command;
99

1010
use Magento\MediaGallery\Model\Asset\Command\DeleteByPath;
11-
use Magento\MediaGalleryApi\Api\Data\AssetInterface;
12-
use Magento\MediaGalleryApi\Model\Asset\Command\GetByIdInterface;
1311
use Magento\Framework\App\ResourceConnection;
1412
use Magento\Framework\DB\Adapter\AdapterInterface;
1513
use Magento\Framework\Exception\CouldNotDeleteException;
@@ -41,16 +39,6 @@ class DeleteByPathTest extends TestCase
4139
*/
4240
private $logger;
4341

44-
/**
45-
* @var string
46-
*/
47-
private $testFilePath;
48-
49-
/**
50-
* @var string
51-
*/
52-
private $mediaAssetTable;
53-
5442
/**
5543
* Initialize basic test class mocks
5644
*/

0 commit comments

Comments
 (0)