承接 bpedroza/laravel-mail-assertions 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bpedroza/laravel-mail-assertions

最新稳定版本:v0.1.12

Composer 安装命令:

composer create-project bpedroza/laravel-mail-assertions

包简介

Make assertions on mail in laravel.

README 文档

README

Build Status

Laravel Mail Assertions

Make assertions on emails in Laravel 6 - 11

This is a simple package to allow you to make assertions on emails sent with laravel.

This package is inspired by tightenco/mailthief which I used pre laravel 6. Now that package is no longer supported, so I made this one to allow me to migrate without too much hassle.

Installation

composer require bpedroza/laravel-mail-assertions --dev

Usage

First you will need to include the Bpedroza\LaravelMailAssertions\MakesMailAssertions trait in your test.

Next you can start making assertions on emails:

Method Description
assertEmailNotSent Assert no emails were sent
assertEmailSent Assert an email was sent
assertEmailSentFrom Assert an email was sent from a given email address
assertEmailSentTo Assert an email was sent to a given address
assertEmailSentWithSubject Assert an email was sent with a given subject
assertLastEmailContains Assert the last email sent contains a given string

统计信息

  • 总下载量: 4.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-31