FileSaveUploadTest should not write to the app root

Created on 17 June 2024, about 1 year ago

Problem/Motivation

Currently \Drupal\Tests\file\Kernel\FileSaveUploadTest::setUp() creates a file to test uploads using \file_put_contents('test.bbb', 'test');

This creates a left over file test.bbb in the app root when tests are done.

Steps to reproduce

Proposed resolution

Write the file to the OS temporary directory instead.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
File module 

Last updated 1 day ago

Created by

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024