Skip to content

Commit 226d7ab

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/Gallery/UploadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function testUploadActionWithErrors(array $file, array $expectation): voi
167167
$this->assertEquals($expectation['errorcode'], $jsonBody['errorcode']);
168168

169169
if (!empty($expectation['tmp_media_path'])) {
170-
$this->assertFileNotExists(
170+
$this->assertFileDoesNotExist(
171171
$this->getFileAbsolutePath($expectation['tmp_media_path'])
172172
);
173173
}

dev/tests/integration/testsuite/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images/NewFolderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testExecuteWithWrongPath()
111111
$this->model->getStorage()->getSession()->setCurrentPath($this->fullDirectoryPath . $dirPath);
112112
$this->model->execute();
113113

114-
$this->assertFileNotExists(
114+
$this->assertFileDoesNotExist(
115115
$this->fullDirectoryPath . $dirPath . $this->dirName
116116
);
117117
}

dev/tests/integration/testsuite/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images/UploadTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function testExecuteWithWrongPath()
182182
$this->model->getStorage()->getSession()->setCurrentPath($dirPath);
183183
$this->model->execute();
184184

185-
$this->assertFileNotExists(
185+
$this->assertFileDoesNotExist(
186186
$this->fullDirectoryPath . $dirPath . $this->fileName
187187
);
188188
}
@@ -202,7 +202,7 @@ public function testExecuteWithWrongFileName()
202202
$this->model->getStorage()->getSession()->setCurrentPath($this->fullDirectoryPath);
203203
$this->model->execute();
204204

205-
$this->assertFileNotExists($this->fullDirectoryPath . $newFilename);
205+
$this->assertFileDoesNotExist($this->fullDirectoryPath . $newFilename);
206206
}
207207

208208
/**

0 commit comments

Comments
 (0)