public function TimeTest::testConvertWordToTime in Node Revision Delete 8
Tests the convertWordToTime() method.
@covers ::convertWordToTime @dataProvider providerConvertWordToTime
Parameters
int $expected: The expected result from calling the function.
string $word: The old word to map.
File
- tests/
src/ Unit/ Utility/ TimeTest.php, line 27
Class
- TimeTest
- Tests the Time class methods.
Namespace
Drupal\Tests\node_revision_delete\Unit\UtilityCode
public function testConvertWordToTime($expected, $word) {
// Testing the function.
$this
->assertEquals($expected, Time::convertWordToTime($word));
}