Release 2.26 (#5189)
* bring back deprecated methods * bump packages * fix SAML redirect * config flag for break times * use class constant instead of string in attributes * throw if all tags were not found - fixes #4792
This commit is contained in:
@@ -1173,18 +1173,9 @@ class TimesheetControllerTest extends APIControllerBaseTest
|
||||
$this->assertIsArray($result[0]);
|
||||
self::assertApiResponseTypeStructure('TimesheetCollection', $result[0]);
|
||||
|
||||
$query = ['tags' => ['Nothing-2-see', 'here']];
|
||||
$this->assertAccessIsGranted($client, '/api/timesheets', 'GET', $query);
|
||||
|
||||
$content = $client->getResponse()->getContent();
|
||||
self::assertIsString($content);
|
||||
$result = json_decode($content, true);
|
||||
|
||||
self::assertIsArray($result);
|
||||
self::assertNotEmpty($result);
|
||||
self::assertEquals(20, \count($result));
|
||||
$this->assertIsArray($result[0]);
|
||||
self::assertApiResponseTypeStructure('TimesheetCollection', $result[0]);
|
||||
$query = ['tags' => ['Nothing-2-see', 'not-existing-here']];
|
||||
$this->request($client, '/api/timesheets', 'GET', $query);
|
||||
$this->assertBadRequestResponse($client->getResponse());
|
||||
}
|
||||
|
||||
public function testRestartAction(): void
|
||||
|
||||
Reference in New Issue
Block a user