Skip to content

Commit fccfca2

Browse files
committed
AC-15399::[CE] PHPUnit 12: Upgrade Wishlist & Rating related test | Remove PHPStan Ignore Comments
1 parent 4c6d65c commit fccfca2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/code/Magento/MediaGallery/Test/Unit/Model/ResourceModel/GetAssetsByPathsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function setUp(): void
5050
{
5151
$logger = $this->createMock(LoggerInterface::class);
5252
$resourceConnection = $this->createMock(ResourceConnection::class);
53-
$this->assetInterfaceFactory = $this->createMock(AssetInterfaceFactory::class); // @phpstan-ignore-line
53+
$this->assetInterfaceFactory = $this->createMock(AssetInterfaceFactory::class);
5454

5555
$this->getAssetsByPaths = new GetAssetsByPaths(
5656
$resourceConnection,

app/code/Magento/MediaStorage/Test/Unit/App/MediaTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected function setUp(): void
9494
{
9595
$this->configMock = $this->createMock(Config::class);
9696
$this->sync = $this->createMock(Synchronization::class);
97-
$this->configFactoryMock = $this->createPartialMock(ConfigFactory::class, ['create']); // @phpstan-ignore-line
97+
$this->configFactoryMock = $this->createPartialMock(ConfigFactory::class, ['create']);
9898
$this->responseMock = $this->createMock(Response::class);
9999
$this->syncFactoryMock = $this->createPartialMock(SynchronizationFactory::class, ['create']);
100100
$this->filesystemMock = $this->createMock(Filesystem::class);
@@ -271,7 +271,7 @@ protected function createMediaModel(bool $isAllowed = true): Media
271271
$driverFile->method('getRealPath')->willReturn('');
272272
$placeholder = $this->createMock(Placeholder::class);
273273
$placeholder->method('getRelativePath')->willReturn(self::RELATIVE_FILE_PATH);
274-
$placeholderFactory = $this->createMock(PlaceholderFactory::class); // @phpstan-ignore-line
274+
$placeholderFactory = $this->createMock(PlaceholderFactory::class);
275275
$placeholderFactory->method('create')
276276
->willReturn($placeholder);
277277

app/code/Magento/MediaStorage/Test/Unit/Helper/File/Storage/DatabaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DatabaseTest extends TestCase
5252
protected function setUp(): void
5353
{
5454
$this->dbStorageFactoryMock = $this->createPartialMock(
55-
DatabaseFactory::class, // @phpstan-ignore-line
55+
DatabaseFactory::class,
5656
['create']
5757
);
5858
$this->objectManager = new ObjectManager($this);

0 commit comments

Comments
 (0)