public function FacetsDateHandlerTest::provideIsoDates in Facets 8
Returns a data provider for the ::testIsoDate().
Return value
array Arrays with data for the test data.
File
- tests/
src/ Unit/ Utility/ FacetsDateHandlerTest.php, line 250
Class
- FacetsDateHandlerTest
- Unit test for Date Handler Service.
Namespace
Drupal\Tests\facets\Unit\UtilityCode
public function provideIsoDates() {
return [
[
'1987-11-26T20:43:04Z',
FacetsDateHandler::FACETS_DATE_SECOND,
],
[
'1987-11-26T20:43:00Z',
FacetsDateHandler::FACETS_DATE_MINUTE,
],
[
'1987-11-26T20:00:00Z',
FacetsDateHandler::FACETS_DATE_HOUR,
],
[
'1987-11-26T00:00:00Z',
FacetsDateHandler::FACETS_DATE_DAY,
],
[
'1987-11-01T00:00:00Z',
FacetsDateHandler::FACETS_DATE_MONTH,
],
[
'1987-01-01T00:00:00Z',
FacetsDateHandler::FACETS_DATE_YEAR,
],
[
'1987-11-26T20:43:04Z',
FacetsDateHandler::FACETS_DATE_ISO8601,
],
];
}