public function ViewsNaturalSortDaysOfTheWeekTest::testAbbreviations in Views Natural Sort 7.2
Test sorting day abbreviations.
File
- ./
views_natural_sort.test, line 224
Class
- ViewsNaturalSortDaysOfTheWeekTest
- Tests all the "Days of the week" natural sort functionality.
Code
public function testAbbreviations() {
module_load_include('inc', 'views_natural_sort', 'views_natural_sort');
$expected = array(
"Sun",
"Mon.",
"Tues",
"Wed",
"Thur",
"Fri.",
"Sat",
);
foreach ($expected as $replaced => $day) {
$this
->assertEqual(views_natural_sort_days_of_the_week_sort_days($day), $replaced);
}
}