Simulate time passage instead of actually waiting in EntityTestMulChanged

Created on 30 September 2016, over 7 years ago
Updated 2 February 2023, over 1 year 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 11 hours ago

  • Maintained by
  • 🇬🇧United Kingdom @catch
  • 🇨🇭Switzerland @Berdir
  • 🇩🇪Germany @hchonov
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.69.0 2024