diff --git a/core/modules/file/src/Tests/FileOnTranslatedEntityTest.php b/core/modules/file/src/Tests/FileOnTranslatedEntityTest.php index f050fa5..f0ba25d 100644 --- a/core/modules/file/src/Tests/FileOnTranslatedEntityTest.php +++ b/core/modules/file/src/Tests/FileOnTranslatedEntityTest.php @@ -137,7 +137,7 @@ public function testSyncedFiles() { // Ensure the first file still exists. Calling isPermanent() would crash // the test suite. $file = File::load($first_fid); - $this->assertTrue(!empty($file), 'First file still exists.'); + $this->assertTrue(!empty($file) && $file->isPermanent(), 'First file still exists and is permanent.'); // This inspects the HTML after the post of the translation, the file // should be displayed on the original node. $this->assertRaw('file--mime-text-plain');