mirror of
https://github.com/Karaka-Management/oms-HumanResourceTimeRecording.git
synced 2026-01-11 11:58:47 +00:00
fix tests
This commit is contained in:
parent
d8d01c139f
commit
a3b7f30b59
|
|
@ -64,7 +64,7 @@ final class ApiController extends Controller
|
|||
$session = $this->createSessionFromRequest($request);
|
||||
|
||||
if ($session === null) {
|
||||
$response->header->status = RequestStatusCode::R_400;
|
||||
$response->header->status = RequestStatusCode::R_403;
|
||||
$this->createInvalidCreateResponse($request, $response, $session);
|
||||
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$this->app = new class() extends ApplicationAbstract
|
||||
{
|
||||
protected string $appName = 'Api';
|
||||
protected int $appId = 1;
|
||||
};
|
||||
|
||||
$this->app->dbPool = $GLOBALS['dbpool'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user