siegerhansma/mailhog-testcase

There is no license information available for the latest version (dev-master) of this package.

A simple testcase for testing mail in Laravel using Mailhog.

dev-master 2016-06-19 22:09 UTC

This package is not auto-updated.

Last update: 2024-05-01 17:13:28 UTC


README

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.