You are here

public function TimeTest::testGetCurrentTime in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::testGetCurrentTime()

Tests the getCurrentTime method.

@covers ::getCurrentTime

File

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

Class

TimeTest
@coversDefaultClass \Drupal\Component\Datetime\Time @group Datetime

Namespace

Drupal\Tests\Component\Datetime

Code

public function testGetCurrentTime() {
  $expected = 12345678;
  $this
    ->assertEquals($expected, $this->time
    ->getCurrentTime());
}