Replace REQUEST_TIME in Kernel tests

Created on 9 February 2020, almost 5 years ago
Updated 29 February 2024, 9 months ago

Problem/Motivation

REQUEST_TIME is a deprecated global. There are several issues to remove it's use in core.

This issue is to remove it from just Kernel tests.

There are no usages of REQUEST_TIME in Unit tests.

Proposed resolution

Use \Drupal::time()->getRequestTime() instead of REQUEST_TIME in Kernel tests.

Remaining tasks

Review
Commit

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Datetime 

Last updated about 4 hours ago

Created by

🇺🇸United States mpdonadio Philadelphia/PA/USA (UTC-5)

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

Merge Requests

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