FileSaveUploadTest should not write to the app root

Created on 17 June 2024, 6 months ago
Updated 29 August 2024, 3 months 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

Downport

Version

10.4 โœจ

Component
File moduleย  โ†’

Last updated 4 days 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