mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Working on refactoring emails
This commit is contained in:
parent
6650f5404f
commit
dceff35f9a
@ -1,17 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Invoice Ninja (https://invoiceninja.com).
|
||||
*
|
||||
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||
*
|
||||
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
||||
*
|
||||
* @license https://opensource.org/licenses/AAL
|
||||
*/
|
||||
|
||||
namespace App\Helpers\Email;
|
||||
|
||||
interface EntityEmailInterface
|
||||
{
|
||||
public function build($invitation, $reminder_template = null);
|
||||
}
|
@ -13,7 +13,7 @@ use App\Models\Invoice;
|
||||
use App\Models\InvoiceInvitation;
|
||||
use App\Utils\Number;
|
||||
|
||||
class InvoiceEmail extends EmailBuilder implements EntityEmailInterface
|
||||
class InvoiceEmail extends EmailBuilder
|
||||
{
|
||||
public function build(InvoiceInvitation $invitation, $reminder_template = null)
|
||||
{
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
namespace Tests\Integration;
|
||||
|
||||
use App\Jobs\Invoice\CreateInvoicePdf;
|
||||
use App\Jobs\Entity\CreateEntityPdf;
|
||||
use Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
@ -36,7 +36,7 @@ class InvoiceUploadTest extends TestCase
|
||||
|
||||
public function testInvoiceUploadWorks()
|
||||
{
|
||||
CreateInvoicePdf::dispatchNow($this->invoice->invitations->first());
|
||||
CreateEntityPdf::dispatchNow($this->invoice->invitations->first());
|
||||
|
||||
$this->assertNotNull($this->invoice->service()->getInvoicePdf($this->invoice->client->primary_contact()->first()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user