Commit a07cbc36 authored by alexshipilov's avatar alexshipilov 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
...@@ -190,7 +190,7 @@ class ImageOptimizePipelineTest extends KernelTestBase { ...@@ -190,7 +190,7 @@ class ImageOptimizePipelineTest extends KernelTestBase {
} }
file_put_contents($filepath, $contents); 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; return $filepath;
} }
...@@ -201,7 +201,7 @@ class ImageOptimizePipelineTest extends KernelTestBase { ...@@ -201,7 +201,7 @@ class ImageOptimizePipelineTest extends KernelTestBase {
// Include special characters in the filename. // Include special characters in the filename.
$image_uri = file_default_scheme() . '://Файл для тестирования ' . $this->randomMachineName() . '.png'; $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. // Setup our pipeline.
$pipeline = ImageAPIOptimizePipeline::create([ $pipeline = ImageAPIOptimizePipeline::create([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment