You are here

public function DurationServiceTest::testConvertValue in Duration Field 8

@covers ::convertValue @dataProvider convertValueDataProvider

File

tests/src/Unit/Service/DurationServiceTest.php, line 45

Class

DurationServiceTest
@coversDefaultClass \Drupal\duration_field\Service\DurationService @group duration_field

Namespace

Drupal\Tests\duration_field\Unit\Service

Code

public function testConvertValue($input, $expectedResponse, $message) {
  $response = DurationService::convertValue($input);
  $this
    ->assertSame($response, $expectedResponse, $message);
}