Skip to content

Commit 7ac2f42

Browse files
committed
B2B-2081: Stabilize general tests along with S3 specific PR validation tests
1 parent 6330e85 commit 7ac2f42

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function createTextFile($filePath, $text): void
7777
}
7878

7979
/**
80-
* Delete text file if exists.
80+
* Delete a file from the storage if it exists
8181
*
8282
* @param string $filePath - path to file or json structure with paths by storage type.
8383
* @throws \Magento\Framework\Exception\FileSystemException
@@ -88,7 +88,7 @@ public function deleteFileIfExists($filePath): void
8888
}
8989

9090
/**
91-
* Copy source file to destination folder.
91+
* Copy source into destination
9292
*
9393
* @param string $source - path to file or json structure with paths by storage type.
9494
* @param string $destination - path to file or json structure with paths by storage type.
@@ -100,7 +100,7 @@ public function copy($source, $destination): void
100100
}
101101

102102
/**
103-
* Create directory.
103+
* Create directory in the storage
104104
*
105105
* @param string $path - path to file or json structure with paths by storage type.
106106
* @param int $permissions
@@ -112,7 +112,7 @@ public function createDirectory($path, $permissions = 0777): void
112112
}
113113

114114
/**
115-
* Delete directory.
115+
* Recursive delete directory in the storage
116116
*
117117
* @param string $path - path to file or json structure with paths by storage type.
118118
* @throws \Magento\Framework\Exception\FileSystemException
@@ -123,7 +123,7 @@ public function deleteDirectory($path): void
123123
}
124124

125125
/**
126-
* Assert file exists by path.
126+
* Assert a file exists in the storage
127127
*
128128
* @param string $filePath - path to file or json structure with paths by storage type.
129129
* @param string $message
@@ -135,7 +135,7 @@ public function assertFileExists($filePath, $message = ''): void
135135
}
136136

137137
/**
138-
* Assert file exists in glob results obtained by pattern.
138+
* Asserts that a file with the given glob pattern exists in the given path in the storage
139139
*
140140
* @param string $path - path to file or json structure with paths by storage type.
141141
* @param string $pattern
@@ -148,7 +148,7 @@ public function assertGlobbedFileExists($path, $pattern, $message = ''): void
148148
}
149149

150150
/**
151-
* Assert directory exists.
151+
* Asserts that a directory exists in the storage
152152
*
153153
* @param string $path - path to file or json structure with paths by storage type.
154154
* @param string $message
@@ -160,7 +160,7 @@ public function assertDirectoryExists($path, $message = ''): void
160160
}
161161

162162
/**
163-
* Assert directory does not exist.
163+
* Asserts that a directory does not exist in the storage
164164
*
165165
* @param string $path - path to file or json structure with paths by storage type.
166166
* @param string $message
@@ -172,7 +172,7 @@ public function assertDirectoryDoesNotExist($path, $message = ''): void
172172
}
173173

174174
/**
175-
* Assert file does not exist.
175+
* Assert a file does not exist in the storage
176176
*
177177
* @param string $filePath - path to file or json structure with paths by storage type.
178178
* @param string $message
@@ -184,7 +184,7 @@ public function assertFileDoesNotExist($filePath, $message = ''): void
184184
}
185185

186186
/**
187-
* Assert file exists and is empty.
187+
* Assert a file in the storage has no contents
188188
*
189189
* @param string $filePath - path to file or json structure with paths by storage type.
190190
* @param string $message
@@ -196,7 +196,7 @@ public function assertFileEmpty($filePath, $message = ''): void
196196
}
197197

198198
/**
199-
* Assert file exists and is not empty.
199+
* Assert a file in the storage is not empty
200200
*
201201
* @param string $filePath - path to file or json structure with paths by storage type.
202202
* @param string $message
@@ -208,7 +208,7 @@ public function assertFileNotEmpty($filePath, $message = ''): void
208208
}
209209

210210
/**
211-
* Assert file contains given string.
211+
* Assert a file in the storage contains a given string
212212
*
213213
* @param string $filePath - path to file or json structure with paths by storage type.
214214
* @param string $text
@@ -221,7 +221,7 @@ public function assertFileContainsString($filePath, $text, $message = ''): void
221221
}
222222

223223
/**
224-
* Assert file obtained by glob pattern exists and contains string.
224+
* Asserts that a file with the given glob pattern at the given path in the storage contains a given string
225225
*
226226
* @param string $path - path to file or json structure with paths by storage type.
227227
* @param string $pattern
@@ -242,7 +242,7 @@ public function assertGlobbedFileContainsString($path, $pattern, $text, $fileInd
242242
}
243243

244244
/**
245-
* Assert file exists and does not contain given string.
245+
* Assert a file in the storage does not contain a given string
246246
*
247247
* @param string $filePath - path to file or json structure with paths by storage type.
248248
* @param string $text
@@ -255,7 +255,7 @@ public function assertFileDoesNotContainString($filePath, $text, $message = ''):
255255
}
256256

257257
/**
258-
* Assert directory is empty.
258+
* Asserts that a directory in the storage is empty
259259
*
260260
* @param string $path - path to file or json structure with paths by storage type.
261261
* @param string $message
@@ -267,7 +267,7 @@ public function assertDirectoryEmpty($path, $message = ''): void
267267
}
268268

269269
/**
270-
* Assert directory is not empty.
270+
* Asserts that a directory in the storage is not empty
271271
*
272272
* @param string $path - path to file or json structure with paths by storage type.
273273
* @param string $message

0 commit comments

Comments
 (0)