@@ -192,6 +192,20 @@ public function assertPathDoesNotExist($path, $message = ''): void
192192 $ this ->assertFalse ($ this ->driver ->isExists ($ path ), "Failed asserting $ path does not exist. " . $ message );
193193 }
194194
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+
195209 /**
196210 * Assert a file on the remote storage system has no contents
197211 *
@@ -263,22 +277,7 @@ public function assertGlobbedFileContainsString($path, $pattern, $text, $fileInd
263277 *
264278 * @throws \Magento\Framework\Exception\FileSystemException
265279 */
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
282281 {
283282 $ this ->assertStringNotContainsString ($ text , $ this ->driver ->fileGetContents ($ filePath ), "Failed asserting $ filePath does not contain $ text. " . $ message );
284283 }
0 commit comments