Allow MailmanTypeRequest to cast to data

This commit is contained in:
philipp lang 2024-10-24 22:40:16 +02:00
parent 019f421c9b
commit 9333b1e562
1 changed files with 6 additions and 0 deletions

View File

@ -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());
}
}