---
title: "Feature: #60123 - Unit base test case removes test files"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-60123"
source: "Changelog/7.0/Feature-60123-UnitTestCaseRemovesTestFiles.rst"
typo3-version: "7.0"
typo3-major: 7
type: "feature"
issue: 60123
forge: "https://forge.typo3.org/issues/60123"
tags: ["PHP-API"]
rendered: "2026-09-17T21:17:42+00:00"
---

# Feature: #60123 - Unit base test case removes test files {#feature-60123-unit-base-test-case-removes-test-files}

See [forge#60123](https://forge.typo3.org/issues/60123)

## Description {#description}

Some unit tests need to create test files or directories to check the system
under test. Those files should be removed again.
A test can now register absolute file paths in `$this->testFilesToDelete`, and
the generic `tearDown()` method will then remove them. Only files, links and directories
within typo3temp/ are allowed.

## Impact {#impact}

This allows tests to clean up the environment without leaving obsolete test files behind.
