From df8b82119ebd0171fdd6acb5c9de84e9e4620fac Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 24 Oct 2024 22:40:16 +0200 Subject: [PATCH] Allow MailmanTypeRequest to cast to data --- tests/RequestFactories/MailmanTypeRequest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/RequestFactories/MailmanTypeRequest.php b/tests/RequestFactories/MailmanTypeRequest.php index e8bba0dc..d1822a69 100644 --- a/tests/RequestFactories/MailmanTypeRequest.php +++ b/tests/RequestFactories/MailmanTypeRequest.php @@ -2,6 +2,7 @@ namespace Tests\RequestFactories; +use App\Mailgateway\Types\MailmanType; use Illuminate\Support\Facades\Http; use Worksome\RequestFactories\RequestFactory; @@ -49,4 +50,9 @@ class MailmanTypeRequest extends RequestFactory : Http::response([], 401); }); } + + public function toData(): MailmanType + { + return MailmanType::from($this->create()); + } }