added last months and last quarters to daterange-picker selections (#5317)

This commit is contained in:
Kevin Papst
2025-01-24 15:21:54 +01:00
committed by GitHub
parent bff72b30cc
commit 4a8c2a79c9
41 changed files with 43 additions and 301 deletions

View File

@@ -881,7 +881,7 @@ class TimesheetControllerTest extends APIControllerBaseTestCase
'activity' => 10,
'project' => 1,
'begin' => (new \DateTime())->format('Y-m-d H:m'),
'end' => (new \DateTime('- 1 hours'))->format('Y-m-d H:m'),
'end' => (new \DateTime('-1 day'))->format('Y-m-d H:m'),
'description' => 'foo',
];
$json = json_encode($data);
@@ -890,7 +890,7 @@ class TimesheetControllerTest extends APIControllerBaseTestCase
$response = $client->getResponse();
self::assertEquals(400, $response->getStatusCode());
$this->assertApiCallValidationError($response, ['activity'], false, ['End date must not be earlier then start date.']);
$this->assertApiCallValidationError($response, ['activity'], false, ['The end date must not be earlier than the start date.']);
}
// TODO: TEST PATCH FOR EXPORTED TIMESHEET FOR USER WITHOUT PERMISSION IS REJECTED