public function TimeTest::testItCanBeCreatedFromDayTimestamp in Time Field For Drupal 8.x / 9.x 2.x
Same name and namespace in other branches
- 8 tests/src/Unit/TimeTest.php \Drupal\Tests\time_field\Unit\TimeTest::testItCanBeCreatedFromDayTimestamp()
Test it can be created from day timestamp.
File
- tests/
src/ Unit/ TimeTest.php, line 60
Class
- TimeTest
- Tests time.
Namespace
Drupal\Tests\time_field\UnitCode
public function testItCanBeCreatedFromDayTimestamp() {
$time = Time::createFromTimestamp(3700);
$this
->assertEquals('01:01:40', $time
->format('H:i:s'));
}