TimeTest::$time

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::time
  2. 8.9.x core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::time
  3. 10 core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::time

The mocked time class.

Type: \Drupal\Component\Datetime\Time

File

core/tests/Drupal/Tests/Component/Datetime/TimeTest.php, line 35

Class

TimeTest
Tests the Time class.

Namespace

Drupal\Tests\Component\Datetime

Code

protected $time;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.