fix dates in project API (#1451)
This commit is contained in:
@@ -102,10 +102,8 @@ class DailyWorkingTimeChartTest extends TestCase
|
||||
{
|
||||
$repository = $this->getMockBuilder(TimesheetRepository::class)->disableOriginalConstructor()->onlyMethods(['getDailyData'])->getMock();
|
||||
$repository->expects($this->once())->method('getDailyData')->willReturnCallback(function ($begin, $end, $user) {
|
||||
$today = (new \DateTime());
|
||||
|
||||
return [
|
||||
['year' => $today->format('Y'), 'month' => $today->format('n'), 'day' => $today->format('j'), 'rate' => 13.75, 'duration' => 1234]
|
||||
['year' => $begin->format('Y'), 'month' => $begin->format('n'), 'day' => $begin->format('j'), 'rate' => 13.75, 'duration' => 1234]
|
||||
];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user