mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
01c47d7c5d
* Add more checks to invoice test * Uploading migration file & test * Comment redundant tests * Improve tests with smaller sample files. (#3250) * Reduce migration file size to improve test velocity * minor fixes * remove xhprof ext * Tests for templates * Remove commented tests * Fix invoices testing & importing * Sending e-mail when migration fails * Uploading & storing the migration file - Added Swagger notation - Added MigrationTest.php method Co-authored-by: David Bomba <turbo124@gmail.com>
37 lines
674 B
PHP
37 lines
674 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MigrationFailed extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $exception;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @param $exception
|
|
*/
|
|
public function __construct($exception)
|
|
{
|
|
$this->exception = $exception;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->from('noreply@invoiceninja.com')
|
|
->view('email.migration.failed');
|
|
}
|
|
}
|