-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hi, is there a way of testing whether failed messages end up in a correct failure_transport? Basically what I want to do is something like this:
public function testOrderFailure(): void {
$this->transport('failed_order')->queue()->assertEmpty();
$this->transport('async_order')->queue()->assertEmpty();
$this->transport('async_order')->send(new Envelope(new OrderPaidMessage($this->order)));
$this->transport('async_order')->process(); //exception will be thrown
$this->transport('async_order')->queue()->assertEmpty();
$this->transport('failed_order')->queue()->assertCount(1);
}
I've got ?catch_exceptions=false configured for the async_order transport-
ksmolkowski-ifx and Miras4207
Metadata
Metadata
Assignees
Labels
No labels