Add API testing framework and initial test cases for authentication endpoints
This commit is contained in:
+2
-2
@@ -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)),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user