fix ci/cd test pipeline
PHP Tests / php-tests (push) Has been cancelled

This commit is contained in:
Nyan Lin Paing
2026-08-20 00:01:28 +07:00
parent a9124ccb8d
commit dfffdd343b
3 changed files with 21 additions and 10 deletions
@@ -49,10 +49,10 @@ test('initiate returns a pending PaymentResultData on a successful precreate', f
Http::fake(['kbz.test/*' => Http::response(['Response' => ['result' => 'SUCCESS', 'prepay_id' => 'PREPAY123']])]);
$result = (new KbzMiniAppGateway($config))->initiate($paymentRequest);
logger()->info('Payment initiation result', ['result' => $result]);
expect($result->status)->toBe(PaymentStatus::Pending)
->and($result->gatewayTransactionId)->toBe('EVB-FIXTURE-001')
->and($result->gatewayPayload)->toBe(['result' => 'SUCCESS', 'prepay_id' => 'PREPAY123']);
->and($result->gatewayPayload['prepayId'])->toBe('PREPAY123');
});
test('initiate returns a failed PaymentResultData when KBZ rejects the request', function () use ($config, $paymentRequest) {