You are here

public function TimeChanger::resetCurrentTime in Content locking (anti-concurrent editing) 8

Same name and namespace in other branches
  1. 8.2 modules/content_lock_timeout/tests/modules/content_lock_timeout_test/src/TimeChanger.php \Drupal\content_lock_timeout_test\TimeChanger::resetCurrentTime()

Reset the current time to the real time.

File

modules/content_lock_timeout/tests/modules/content_lock_timeout_test/src/TimeChanger.php, line 40

Class

TimeChanger
This is a datetime.time service for testing only.

Namespace

Drupal\content_lock_timeout_test

Code

public function resetCurrentTime() {
  \Drupal::keyValue('time')
    ->delete('time');
}