Skip to content

Commit c31974b

Browse files
committed
B2B:2037:[AWS S3] [Integration Tests]: Investigate Test Failures in MediaGallerySynchronization & MediaGallerySynchronizationMetadata modules
- Added static fixes
1 parent 83b00a6 commit c31974b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

app/code/Magento/MediaGalleryMetadata/Model/Jpeg/ReadFile.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ private function readSegment($resource, int $segmentType): SegmentInterface
191191
{
192192
//phpcs:ignore Magento2.Functions.DiscouragedFunction
193193
$segmentSize = unpack('nsize', $this->read($resource, 2))['size'] - 2;
194-
195194
return $this->segmentFactory->create([
196195
'name' => $this->segmentNames->getSegmentName($segmentType),
197196
'data' => $this->read($resource, $segmentSize)

app/code/Magento/MediaGallerySynchronization/Test/Integration/Model/SynchronizeFilesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class SynchronizeFilesTest extends TestCase
4444
private $mediaDirectory;
4545

4646
/**
47-
* {@inheritdoc}
47+
* @inheritdoc
4848
*/
4949
protected function setUp(): void
5050
{
@@ -70,7 +70,7 @@ public function testExecute(
7070
string $title,
7171
string $source
7272
): void {
73-
$path = realpath(__DIR__.'/../_files/'.$file);
73+
$path = realpath(__DIR__ . '/../_files/' . $file);
7474
$modifiableFilePath = $this->mediaDirectory->getAbsolutePath($file);
7575
$this->driver->filePutContents(
7676
$modifiableFilePath,

dev/tests/integration/testsuite/Magento/MediaGallerySynchronizationMetadata/Model/SynchronizeFilesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testExecute(
8080
?string $description,
8181
?array $keywords
8282
): void {
83-
$path = realpath(__DIR__.'/../_files/'.$file);
83+
$path = realpath(__DIR__ . '/../_files/' . $file);
8484
$modifiableFilePath = $this->mediaDirectory->getAbsolutePath($file);
8585
$this->driver->filePutContents(
8686
$modifiableFilePath,
@@ -91,7 +91,7 @@ public function testExecute(
9191

9292
$loadedAssets = $this->getAssetsByPath->execute([$file])[0];
9393
$loadedKeywords = $this->getKeywords($loadedAssets) ?: null;
94-
94+
9595
$this->assertEquals($title, pathinfo($loadedAssets->getTitle(), PATHINFO_FILENAME));
9696
$this->assertEquals($description, $loadedAssets->getDescription());
9797
$this->assertEquals($keywords, $loadedKeywords);

0 commit comments

Comments
 (0)