Skip to content

Commit 2e48e29

Browse files
committed
MC-39923: Stabilize Integration Tests (PageBuilder)
- Replace assertFileNotExists by assertFileDoesNotExist
1 parent 90bacac commit 2e48e29

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/ImageUploaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testMoveFileFromTmp(): void
9090
{
9191
$expectedFilePath = $this->imageUploader->getBasePath() . DIRECTORY_SEPARATOR . 'magento_small_image_1.jpg';
9292

93-
$this->assertFileNotExists($this->mediaDirectory->getAbsolutePath($expectedFilePath));
93+
$this->assertFileDoesNotExist($this->mediaDirectory->getAbsolutePath($expectedFilePath));
9494

9595
$this->imageUploader->moveFileFromTmp('magento_small_image.jpg');
9696

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Gallery/UpdateHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public function testExecuteWithImageToDelete(): void
289289
$this->updateHandler->execute($product);
290290
$productImages = $this->galleryResource->loadProductGalleryByAttributeId($product, $this->mediaAttributeId);
291291
$this->assertCount(0, $productImages);
292-
$this->assertFileNotExists(
292+
$this->assertFileDoesNotExist(
293293
$this->mediaDirectory->getAbsolutePath($this->config->getBaseMediaPath() . $image)
294294
);
295295
$defaultImages = $this->productResource->getAttributeRawValue(

dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/Images/StorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function testDeleteDirectory(): void
121121
$this->storage->createDirectory($dir, $path);
122122
$this->assertFileExists($fullPath);
123123
$this->storage->deleteDirectory($fullPath);
124-
$this->assertFileNotExists($fullPath);
124+
$this->assertFileDoesNotExist($fullPath);
125125
}
126126

127127
/**

dev/tests/integration/testsuite/Magento/Framework/MessageQueue/UseCase/WildcardTopicTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testWildCardNonMatchingTopic()
6363
$testObject = $this->generateTestObject();
6464
$this->publisher->publish('not.matching.wildcard.topic', $testObject);
6565
sleep(2);
66-
$this->assertFileNotExists($this->logFilePath, "No log file must be created for non-matching topic.");
66+
$this->assertFileDoesNotExist($this->logFilePath, "No log file must be created for non-matching topic.");
6767
}
6868

6969
/**

dev/tests/integration/testsuite/Magento/ImportExport/Model/Export/Adapter/CsvTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testDestruct(): void
6262
);
6363
/** Assert that the destination file was removed after destruct */
6464
$this->csv = null;
65-
$this->assertFileNotExists(
65+
$this->assertFileDoesNotExist(
6666
$directoryHandle->getAbsolutePath($this->destination),
6767
'The destination file was\'t removed after destruct'
6868
);

dev/tests/integration/testsuite/Magento/Setup/Module/I18n/Pack/GeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function tearDown(): void
8686

8787
public function testGeneration()
8888
{
89-
$this->assertFileNotExists($this->_packPath);
89+
$this->assertFileDoesNotExist($this->_packPath);
9090

9191
ComponentRegistrar::register(
9292
ComponentRegistrar::MODULE,

0 commit comments

Comments
 (0)