mercredi 22 mai 2019

Laravel 5.2 - PHPunit - How to send email to support team if test has failed?

I want to know how I can send email to the support team if one of my unitest has failed?

<?php

use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class ExampleTest extends TestCase
{
    public function testBasicExample()
    {
         $this->visit('/login')->see('Hello');
    }
}

How I can send an email if this test has failed?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire