@@ -192,6 +192,20 @@ public function assertPathDoesNotExist($path, $message = ''): void
192
192
$ this ->assertFalse ($ this ->driver ->isExists ($ path ), "Failed asserting $ path does not exist. " . $ message );
193
193
}
194
194
195
+ /**
196
+ * Assert a file does not exist on the remote storage system
197
+ *
198
+ * @param string $filePath
199
+ * @param string $message
200
+ * @return void
201
+ *
202
+ * @throws \Magento\Framework\Exception\FileSystemException
203
+ */
204
+ public function assertFileDoesNotExist ($ filePath , $ message = '' ): void
205
+ {
206
+ $ this ->assertFalse ($ this ->driver ->isExists ($ filePath ), $ message );
207
+ }
208
+
195
209
/**
196
210
* Assert a file on the remote storage system has no contents
197
211
*
@@ -263,22 +277,7 @@ public function assertGlobbedFileContainsString($path, $pattern, $text, $fileInd
263
277
*
264
278
* @throws \Magento\Framework\Exception\FileSystemException
265
279
*/
266
- public function assertFileDoesNotContainString ($ filePath , $ text , $ message = "" ): void
267
- {
268
- $ this ->assertStringNotContainsString ($ text , $ this ->driver ->fileGetContents ($ filePath ), $ message );
269
- }
270
-
271
- /**
272
- * Assert a file on the remote storage system does not contain a given string
273
- *
274
- * @param string $filePath
275
- * @param string $text
276
- * @param string $message
277
- * @return void
278
- *
279
- * @throws \Magento\Framework\Exception\FileSystemException
280
- */
281
- public function assertFileDoesNotContain ($ filePath , $ text , $ message = '' ): void
280
+ public function assertFileDoesNotContainString ($ filePath , $ text , $ message = '' ): void
282
281
{
283
282
$ this ->assertStringNotContainsString ($ text , $ this ->driver ->fileGetContents ($ filePath ), "Failed asserting $ filePath does not contain $ text. " . $ message );
284
283
}
0 commit comments