jsonapi FileUploadTest clears too many caches

Created on 4 October 2023, over 1 year ago
Updated 5 October 2023, over 1 year ago

Problem/Motivation

Full cache clear at the end of ::setUp() in addition to full cache clears in several test classes.

Most tests just need a router rebuild.

On my machine:

Before:

Testing Drupal\Tests\jsonapi\Functional\FileUploadTest
.................                                                 17 / 17 (100%)

Time: 06:29.253, Memory: 6.00 MB

After:

Testing Drupal\Tests\jsonapi\Functional\FileUploadTest
.................                                                 17 / 17 (100%)

Time: 05:36.666, Memory: 6.00 MB

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 19 hours ago

Created by

🇬🇧United Kingdom catch

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

Comments & Activities

Production build 0.71.5 2024