You are here

public function TimeToDateTest::test in Tamper 8

Test timetodate.

File

tests/src/Unit/Plugin/Tamper/TimeToDateTest.php, line 25

Class

TimeToDateTest
Tests the timetodate plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function test() {
  $this
    ->assertEquals("It's 7 o'clock Jim.", $this->plugin
    ->tamper(mktime(7)));
}