{"id":37013015,"url":"https://github.com/bpedroza/laravel-mail-assertions","last_synced_at":"2026-01-14T01:16:10.858Z","repository":{"id":43686249,"uuid":"218787899","full_name":"bpedroza/laravel-mail-assertions","owner":"bpedroza","description":"Make assertions on emails in Laravel 6-10","archived":false,"fork":false,"pushed_at":"2024-12-23T15:17:31.000Z","size":126,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T05:30:56.228Z","etag":null,"topics":["assertions","laravel","laravel-10-package","laravel-6-package","laravel-7-package","laravel-8-package","laravel-9-package","laravel-mail-assertions","phpunit"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bpedroza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-31T14:41:04.000Z","updated_at":"2024-12-23T15:17:34.000Z","dependencies_parsed_at":"2024-03-13T15:43:56.590Z","dependency_job_id":null,"html_url":"https://github.com/bpedroza/laravel-mail-assertions","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/bpedroza/laravel-mail-assertions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpedroza%2Flaravel-mail-assertions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpedroza%2Flaravel-mail-assertions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpedroza%2Flaravel-mail-assertions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpedroza%2Flaravel-mail-assertions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpedroza","download_url":"https://codeload.github.com/bpedroza/laravel-mail-assertions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpedroza%2Flaravel-mail-assertions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assertions","laravel","laravel-10-package","laravel-6-package","laravel-7-package","laravel-8-package","laravel-9-package","laravel-mail-assertions","phpunit"],"created_at":"2026-01-14T01:16:10.243Z","updated_at":"2026-01-14T01:16:10.846Z","avatar_url":"https://github.com/bpedroza.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build Status](https://github.com/bpedroza/laravel-mail-assertions/actions/workflows/run-tests.yml/badge.svg)\n\n# Laravel Mail Assertions\nMake assertions on emails in Laravel 6 - 11\n\nThis is a simple package to allow you to make assertions on emails sent with laravel.\n\nThis package is inspired by tightenco/mailthief which I used pre laravel 6. Now that\npackage is no longer supported, so I made this one to allow me to migrate without too\nmuch hassle.\n\n## Installation\n\n`composer require bpedroza/laravel-mail-assertions --dev`\n\n## Usage\n\nFirst you will need to include the `Bpedroza\\LaravelMailAssertions\\MakesMailAssertions` trait\nin your test.\n\nNext you can start making assertions on emails:\n\n| Method | Description |\n| ------ | ----------- |\n| `assertEmailNotSent` | Assert no emails were sent |\n| `assertEmailSent` | Assert an email was sent |\n| `assertEmailSentFrom` | Assert an email was sent from a given email address |\n| `assertEmailSentTo` | Assert an email was sent to a given address |\n| `assertEmailSentWithSubject` | Assert an email was sent with a given subject |\n| `assertLastEmailContains` | Assert the last email sent contains a given string |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpedroza%2Flaravel-mail-assertions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpedroza%2Flaravel-mail-assertions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpedroza%2Flaravel-mail-assertions/lists"}