siegerhansma / mailhog-testcase-laravel by siegerhansma

A simple testcase for testing mail in Laravel using Mailhog.
8
1
2
Package Data
Maintainer Username: siegerhansma
Maintainer Contact: siegerhansma@gmail.com (Sieger Hansma)
Package Create Date: 2016-05-23
Package Last Update: 2016-06-19
Language: PHP
License: Unknown
Last Refreshed: 2024-04-25 03:00:08
Package Statistics
Total Downloads: 8
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Mailhog Testcase for Laravel

A simple testcase for using Mailhog with Laravel.

Installation

Usage

Instead of extending the normal TestCase in your testclasses, now extend SiegerHansma\MailhogTestcase\MailhogTestcase. The MailhogTestcase class itself extends the base Laravel TestCase so you can still use all the methods that Laravel provides.

class RegisterTest extends MailhogTestCase

Configuration

Mailhog running on another port? We've got you covered. Simply add a mailhogBasepath property to your test class, like so.

    protected $mailhogBasepath = 'http://localhost:12345';
    
    class RegisterTest extends MailhogTestCase {

API overview

Still todo. The main Testcase is already documented.