Skip to content
Snippets Groups Projects
Commit a07cbc36 authored by Alex Shipilov's avatar Alex Shipilov Committed by Steven Jones
Browse files

Issue #3139465 by alexshipilov, osab: Replace assertions involving calls to...

Issue #3139465 by alexshipilov, osab: Replace assertions involving calls to is_file with assertFileExists()/assertFileNotExists()
parent bb665be5
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,7 @@ class ImageOptimizePipelineTest extends KernelTestBase {
}
file_put_contents($filepath, $contents);
$this->assertTrue(is_file($filepath), t('The test file exists on the disk.'));
$this->assertFileExists($filepath, t('The test file exists on the disk.'));
return $filepath;
}
......@@ -201,7 +201,7 @@ class ImageOptimizePipelineTest extends KernelTestBase {
// Include special characters in the filename.
$image_uri = file_default_scheme() . '://Файл для тестирования ' . $this->randomMachineName() . '.png';
$this->assertFalse(is_file($image_uri), t('The test file does not exist on the disk.'));
$this->assertFileNotExists($image_uri, t('The test file does not exist on the disk.'));
// Setup our pipeline.
$pipeline = ImageAPIOptimizePipeline::create([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment