public function DateRecurUtilityTest::providerLargestDate in Recurring Dates Field 3.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/DateRecurUtilityTest.php \Drupal\Tests\date_recur\Kernel\DateRecurUtilityTest::providerLargestDate()
- 3.0.x tests/src/Kernel/DateRecurUtilityTest.php \Drupal\Tests\date_recur\Kernel\DateRecurUtilityTest::providerLargestDate()
- 3.1.x tests/src/Kernel/DateRecurUtilityTest.php \Drupal\Tests\date_recur\Kernel\DateRecurUtilityTest::providerLargestDate()
Data provider for testLargestDate.
Return value
array Data for testing.
File
- tests/
src/ Kernel/ DateRecurUtilityTest.php, line 93
Class
- DateRecurUtilityTest
- Tests utility class.
Namespace
Drupal\Tests\date_recur\KernelCode
public function providerLargestDate() {
$data = [];
$data['year'] = [
'year',
'2014',
'Wed, 31 Dec 2014 23:59:59 +0800',
];
$data['month'] = [
'month',
'2014-10',
'Fri, 31 Oct 2014 23:59:59 +0800',
];
$data['day'] = [
'day',
'2014-10-02',
'Thu, 02 Oct 2014 23:59:59 +0800',
];
$data['second'] = [
'second',
'2014-10-02T11:30:49',
'Thu, 02 Oct 2014 11:30:49 +0800',
];
return $data;
}