Add API testing framework and initial test cases for authentication endpoints

This commit is contained in:
Jeppe Bundgaard
2026-04-13 11:50:10 +02:00
parent 92d79b867a
commit 2a8e8986e6
359 changed files with 8822 additions and 45623 deletions
@@ -101,7 +101,7 @@ if (!class_exists('TestableEconomicV2DistributionService')) {
];
}
protected function buildTransactionObject(int $order_id, string $created_at, int $department_id, ?float $amount = null): array
protected function buildTransactionObject(int $order_id, string $created_at, int $department_id, ?float $amount = null, ?bool $included = null): array
{
return [
'id' => $order_id,
@@ -109,7 +109,7 @@ if (!class_exists('TestableEconomicV2DistributionService')) {
'amount' => round((float)($amount ?? 0.0), 5),
'booked' => true,
'department_id' => $department_id,
'excluded' => !$this->isDepartmentEligible($department_id),
'excluded' => !($included ?? $this->isDepartmentEligible($department_id)),
];
}