function ScheduleDataTest::DataForTestMakeScheduleProvider in Loft Data Grids 7.2
Provides data for testMakeSchedule.
File
- vendor/
aklump/ loft_data_grids/ tests/ phpunit/ ScheduleDataTest.php, line 19
Class
Namespace
AKlump\LoftDataGridsCode
function DataForTestMakeScheduleProvider() {
$tests = array();
$tests[] = array(
'{"03\\/27\\/2017":[{"task":"do","time":8}],"03\\/28\\/2017":[{"task":"do","time":8}],"03\\/29\\/2017":[{"task":"do","time":4},{"task":"re","time":2},{"task":"mi","time":2}],"03\\/30\\/2017":[{"task":"mi","time":3}],"Schedule Statistics":[{"start date":"03\\/27\\/2017","end date":"03\\/30\\/2017","total hours":27,"total items":3,"hours per day":8,"days off":0,"weekdays off":"Sat, Sun","dates off":""}]}',
'183c4ed456d5aa89641bbbf420174e0ca4332c6f',
8,
array(
array(
'do',
20,
),
array(
're',
2,
),
array(
'mi',
5,
),
),
// no weekends
array(
'sat',
'sun',
),
// then entire first week off.
array(
'2017-03-20',
'2017-03-21',
'2017-03-22',
'2017-03-23',
'2017-03-24',
),
true,
);
$tests[] = array(
'{"03\\/20\\/2017":[{"task":"do","time":8}],"03\\/22\\/2017":[{"task":"re","time":8}],"Schedule Statistics":[{"start date":"03\\/20\\/2017","end date":"03\\/22\\/2017","total hours":16,"total items":2,"hours per day":8,"days off":1,"weekdays off":"Sun, Tue","dates off":"03\\/21\\/2017"}]}',
'a3cc0f58b15a3e9708387441e3955e055dd24191',
8,
array(
array(
'do',
8,
),
array(
're',
8,
),
),
array(
'sun',
'tue',
),
array(),
true,
);
$tests[] = array(
'{"03\\/19\\/2017":[{"task":"do","time":3},{"task":"re","time":5}],"03\\/20\\/2017":[{"task":"mi","time":8}]}',
'2390a77da7249aaf526bbe67880722a6ffd18c74',
8,
array(
array(
'do',
3,
),
array(
're',
5,
),
array(
'mi',
8,
),
),
);
$tests[] = array(
'{"03\\/19\\/2017":[{"task":"do","time":8}],"03\\/20\\/2017":[{"task":"do","time":8}],"03\\/21\\/2017":[{"task":"do","time":4},{"task":"re","time":2},{"task":"mi","time":2}],"03\\/22\\/2017":[{"task":"mi","time":3}]}',
'42e040740cc27c45b57bd7523027108dc8eb6a45',
8,
array(
array(
'do',
20,
),
array(
're',
2,
),
array(
'mi',
5,
),
),
);
$tests[] = array(
'{"03\\/19\\/2017":[{"task":"do","time":8}],"03\\/20\\/2017":[{"task":"re","time":8}]}',
'0dde9e3b0c722326b1b3402665b1fc35d51a3fa6',
8,
array(
array(
'do',
8,
),
array(
're',
8,
),
),
);
$tests[] = array(
'{"03\\/19\\/2017":[{"task":"do","time":8}],"03\\/20\\/2017":[{"task":"do","time":8}],"03\\/21\\/2017":[{"task":"do","time":4}]}',
'e18fb2fb1d3442812256e4cb53fc34f8471b3a38',
8,
array(
array(
'do',
20,
),
),
);
return $tests;
}