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