function DateHelperTest::providerTestWeekDaysOrdered
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php \Drupal\Tests\Core\Datetime\DateHelperTest::providerTestWeekDaysOrdered()
- 8.9.x core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php \Drupal\Tests\Core\Datetime\DateHelperTest::providerTestWeekDaysOrdered()
- 11.x core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php \Drupal\Tests\Core\Datetime\DateHelperTest::providerTestWeekDaysOrdered()
File
-
core/
tests/ Drupal/ Tests/ Core/ Datetime/ DateHelperTest.php, line 65
Class
- DateHelperTest
- @coversDefaultClass \Drupal\Core\Datetime\DateHelper @group Datetime
Namespace
Drupal\Tests\Core\DatetimeCode
public static function providerTestWeekDaysOrdered() {
$data = [];
$data[] = [
0,
[
0 => 'Sunday',
1 => 'Monday',
2 => 'Tuesday',
3 => 'Wednesday',
4 => 'Thursday',
5 => 'Friday',
6 => 'Saturday',
],
];
$data[] = [
1,
[
1 => 'Monday',
2 => 'Tuesday',
3 => 'Wednesday',
4 => 'Thursday',
5 => 'Friday',
6 => 'Saturday',
0 => 'Sunday',
],
];
$data[] = [
2,
[
2 => 'Tuesday',
3 => 'Wednesday',
4 => 'Thursday',
5 => 'Friday',
6 => 'Saturday',
0 => 'Sunday',
1 => 'Monday',
],
];
$data[] = [
3,
[
3 => 'Wednesday',
4 => 'Thursday',
5 => 'Friday',
6 => 'Saturday',
0 => 'Sunday',
1 => 'Monday',
2 => 'Tuesday',
],
];
$data[] = [
4,
[
4 => 'Thursday',
5 => 'Friday',
6 => 'Saturday',
0 => 'Sunday',
1 => 'Monday',
2 => 'Tuesday',
3 => 'Wednesday',
],
];
$data[] = [
5,
[
5 => 'Friday',
6 => 'Saturday',
0 => 'Sunday',
1 => 'Monday',
2 => 'Tuesday',
3 => 'Wednesday',
4 => 'Thursday',
],
];
$data[] = [
6,
[
6 => 'Saturday',
0 => 'Sunday',
1 => 'Monday',
2 => 'Tuesday',
3 => 'Wednesday',
4 => 'Thursday',
5 => 'Friday',
],
];
$data[] = [
7,
[
0 => 'Sunday',
1 => 'Monday',
2 => 'Tuesday',
3 => 'Wednesday',
4 => 'Thursday',
5 => 'Friday',
6 => 'Saturday',
],
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.