Allow MailmanTypeRequest to cast to data
This commit is contained in:
parent
c2cd43380e
commit
91a8e05c94
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Tests\RequestFactories;
|
namespace Tests\RequestFactories;
|
||||||
|
|
||||||
|
use App\Mailgateway\Types\MailmanType;
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
use Worksome\RequestFactories\RequestFactory;
|
use Worksome\RequestFactories\RequestFactory;
|
||||||
|
|
||||||
|
@ -49,4 +50,9 @@ class MailmanTypeRequest extends RequestFactory
|
||||||
: Http::response([], 401);
|
: Http::response([], 401);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function toData(): MailmanType
|
||||||
|
{
|
||||||
|
return MailmanType::from($this->create());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue