Simulate time passage instead of actually waiting in EntityTestMulChanged

Created on 30 September 2016, about 8 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

Some tests need to submit entities with different creation date, to test sorting for example. Drupal\entity_test\Entity\EntityTestMulChanged currently facilitates this by waiting a second after each save. It works but IMHO it's suboptimal because it'll add up to a huge amount of wasted time over the years.

Proposed resolution

Change test entity definition to simulate passage of time but not actually wait idly.

Remaining tasks

Review and discuss.

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Needs work

Version

10.1

Component
Entity 

Last updated about 7 hours ago

Created by

🇵🇱Poland blazey

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024