public function FacetsDateHandlerTest::provideNextDateIncrementData in Facets 8
Returns a data provider for the ::testNextDateIncrement().
Return value
array Arrays with data for the test data.
File
- tests/
src/ Unit/ Utility/ FacetsDateHandlerTest.php, line 268
Class
- FacetsDateHandlerTest
- Unit test for Date Handler Service.
Namespace
Drupal\Tests\facets\Unit\UtilityCode
public function provideNextDateIncrementData() {
return [
[
'1987-11-26T20:43:05Z',
FacetsDateHandler::FACETS_DATE_SECOND,
],
[
'1987-11-26T20:44:04Z',
FacetsDateHandler::FACETS_DATE_MINUTE,
],
[
'1987-11-26T21:43:04Z',
FacetsDateHandler::FACETS_DATE_HOUR,
],
[
'1987-11-27T20:43:04Z',
FacetsDateHandler::FACETS_DATE_DAY,
],
[
'1987-12-26T20:43:04Z',
FacetsDateHandler::FACETS_DATE_MONTH,
],
[
'1988-11-26T20:43:04Z',
FacetsDateHandler::FACETS_DATE_YEAR,
],
];
}