Fix testPendingOrderFailedWithoutEmail: add missing audit mock expectation
The audit->log() call in handleFailed was not configured on the mock, causing an exception caught by the try/catch which prevented setStatus from being called. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -385,6 +385,8 @@ class StripeSyncCommandTest extends TestCase
|
|||||||
|
|
||||||
$this->stripeService->method('retrievePaymentIntent')->willReturn($paymentIntent);
|
$this->stripeService->method('retrievePaymentIntent')->willReturn($paymentIntent);
|
||||||
|
|
||||||
|
$this->audit->expects(self::once())->method('log')
|
||||||
|
->with('payment_failed_sync', 'BilletBuyer', self::anything(), self::anything());
|
||||||
$this->mailerService->expects(self::never())->method('sendEmail');
|
$this->mailerService->expects(self::never())->method('sendEmail');
|
||||||
|
|
||||||
$tester = $this->createCommandTester();
|
$tester = $this->createCommandTester();
|
||||||
|
|||||||
Reference in New Issue
Block a user