Skip to content

Commit 1ac7ca6

Browse files
committed
B2B-1632: Add MFTF test for MC-38948
- Addressing CR feedback
1 parent 4459485 commit 1ac7ca6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function assertFileExists($filePath, $message = ''): void
158158
*
159159
* @throws \Magento\Framework\Exception\FileSystemException
160160
*/
161-
public function assertSearchedForFileExists($path, $pattern, $message = ""): void
161+
public function assertGlobbedFileExists($path, $pattern, $message = ""): void
162162
{
163163
$files = $this->driver->search($pattern, $path);
164164
$this->assertNotEmpty($files, $message);
@@ -233,7 +233,7 @@ public function assertFileContainsString($filePath, $text, $message = ""): void
233233
*
234234
* @throws \Magento\Framework\Exception\FileSystemException
235235
*/
236-
public function assertSearchedForFileContainsString($path, $pattern, $text, $fileIndex = 0, $message = ""): void
236+
public function assertGlobbedFileContainsString($path, $pattern, $text, $fileIndex = 0, $message = ""): void
237237
{
238238
$files = $this->driver->search($pattern, $path);
239239
$this->assertStringContainsString($text, $this->driver->fileGetContents($files[$fileIndex]), $message);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function assertFileExists($filePath, $message = ''): void
143143
*
144144
* @throws \Magento\Framework\Exception\FileSystemException
145145
*/
146-
public function assertSearchedForFileExists($path, $pattern, $message = ""): void
146+
public function assertGlobbedFileExists($path, $pattern, $message = ""): void
147147
{
148148
$realPath = $this->expandPath($path);
149149
$files = $this->driver->search($pattern, $realPath);
@@ -223,7 +223,7 @@ public function assertFileContainsString($filePath, $text, $message = ""): void
223223
*
224224
* @throws \Magento\Framework\Exception\FileSystemException
225225
*/
226-
public function assertSearchedForFileContainsString($path, $pattern, $text, $fileIndex = 0, $message = ""): void
226+
public function assertGlobbedFileContainsString($path, $pattern, $text, $fileIndex = 0, $message = ""): void
227227
{
228228
$realPath = $this->expandPath($path);
229229
$files = $this->driver->search($pattern, $realPath);

0 commit comments

Comments
 (0)