Deprecate TestFileCreationTrait::generateFile()

Created on 26 June 2023, about 1 year ago

Problem/Motivation

Follow-up to #3368789-9: Fix MaximumFileSizeExceededUploadTest test for PHP 8.3

The function is used only 3 times in core few times in contrib http://codcontrib.hank.vps-private.net/search?text=generateFile%28&filen...

Implementation using very slow algo to generate files so is the cause of slow test

Proposed resolution

- deprecate the method and suggest to use new PHP random extension instead

Remaining tasks

- agree
- patch
- review/commit

User interface changes

no

API changes

\Drupal\Tests\TestFileCreationTrait::generateFile() is deprecated

Data model changes

no

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
PHPUnit 

Last updated about 1 hour ago

Created by

🇫🇷France andypost

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024