Testing | laravel-mailcoach-mailer-go | Spatie       

 SPATIE  

laravel-mailcoach-mailer-go
===========================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-mailcoach-mailer-go](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1)  Testing

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1) 

  Testing    
- [ Introduction ](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1/introduction)
- [ Installation and setup ](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1/usage)
- [ Testing ](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1/testing)
- [ Releasing ](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1/releasing)
- [ Changelog ](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1/changelog)
- [ Support us ](https://spatie.be/docs/laravel-mailcoach-mailer-go/v1/support-us)

 Testing
=======

Run `go test -race ./...` to execute the tests and examples. Run `go vet ./...` for static checks and `go mod tidy -diff` to check dependency metadata. Format code with `gofmt -w .`.

Tests use isolated `laraveltest.New` applications, host routes, the framework HTTP fake with stray requests prevented, and a real local HTTP server. They cover regular mail, templates, nested replacements, notifications, native synchronous queue delivery, recipient separation, attachments, errors, cancellation, environment overrides, transport replacement and the test command. No Mailcoach account is needed.

The queue test exercises Laravel's encrypted serialized mail job on its synchronous connection. It does not establish Redis or database worker durability, retry scheduling or production inbox delivery. Use `mailtest.New(client)` to record your application's mail without reaching the transport. `Options.Fake` is a server-side fake and is not a substitute for a local test fake.

The port was checked against PHP `laravel-mailcoach-mailer` at `1085803a15b57fc24c243e84cab00747d93bc142`, its `mailcoach-mailer` transport at `261e28220381beef9de3ad7e03ceb02ef51c675b`, and Rust `laravel-mailcoach-mailer-rust` at `372422eac55d722d9884f45afc148ccfec79e6b3`. PHP defines the behavior. Rust supplied reference cases for inline attachments, structured replacements, status handling and queue serialization.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
