add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
@@ -9,11 +9,11 @@ class RefundDecisionService
public function updateDecision(int $refundId, string $status, string $reason, int $actorId): array
{
$refund = Refund::query()->find($refundId);
if (! $refund) {
if (!$refund) {
return ['ok' => false, 'message' => 'Refund not found.'];
}
if (! in_array($status, [Refund::STATUS_APPROVED, Refund::STATUS_REJECTED], true)) {
if (!in_array($status, [Refund::STATUS_APPROVED, Refund::STATUS_REJECTED], true)) {
return ['ok' => false, 'message' => 'Invalid refund status.'];
}
@@ -46,7 +46,7 @@ class RefundDecisionService
public function cancel(int $refundId, int $actorId): array
{
$refund = Refund::query()->find($refundId);
if (! $refund) {
if (!$refund) {
return ['ok' => false, 'message' => 'Refund not found.'];
}