Skip to content

Commit 0fa62d0

Browse files
committed
B2B-1632: Add MFTF test for MC-38948
- Addressing PR feedback
1 parent f802f7c commit 0fa62d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/AwsS3/Test/Mftf/Helper/S3FileAssertions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function assertFileContainsString($filePath, $text, $message = ""): void
236236
public function assertGlobbedFileContainsString($path, $pattern, $text, $fileIndex = 0, $message = ""): void
237237
{
238238
$files = $this->driver->search($pattern, $path);
239-
$this->assertStringContainsString($text, $this->driver->fileGetContents($files[$fileIndex]), $message);
239+
$this->assertStringContainsString($text, $this->driver->fileGetContents($files[$fileIndex] ?? ''), $message);
240240
}
241241

242242
/**

0 commit comments

Comments
 (0)