Skip to content

Commit f802f7c

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Test/Mftf/Helper/LocalFileAssertions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function assertGlobbedFileContainsString($path, $pattern, $text, $fileInd
227227
{
228228
$realPath = $this->expandPath($path);
229229
$files = $this->driver->search($pattern, $realPath);
230-
$this->assertStringContainsString($text, $this->driver->fileGetContents($files[$fileIndex]), $message);
230+
$this->assertStringContainsString($text, $this->driver->fileGetContents($files[$fileIndex] ?? ''), $message);
231231
}
232232

233233
/**

0 commit comments

Comments
 (0)