public function DurationServiceTest::checkDurationInvalidDataProvider in Duration Field 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Service/DurationServiceTest.php \Drupal\Tests\duration_field\Unit\Service\DurationServiceTest::checkDurationInvalidDataProvider()
- 3.0.x tests/src/Unit/Service/DurationServiceTest.php \Drupal\Tests\duration_field\Unit\Service\DurationServiceTest::checkDurationInvalidDataProvider()
Data provider for testCheckDurationInvalid.
File
- tests/
src/ Unit/ Service/ DurationServiceTest.php, line 34
Class
- DurationServiceTest
- @coversDefaultClass \Drupal\duration_field\Service\DurationService @group duration_field
Namespace
Drupal\Tests\duration_field\Unit\ServiceCode
public function checkDurationInvalidDataProvider() {
return [
[
'PY1D',
TRUE,
'PY1D correctly tested as invalid',
],
[
'P1Y2M3DT4H',
FALSE,
'P1Y2M3DT4H correctly tested as valid',
],
];
}