Add request object to DocumentCreated event

This commit is contained in:
Burak Çakırel
2021-01-12 15:34:20 +03:00
parent ac3dc327b8
commit 81719763a2
7 changed files with 17 additions and 6 deletions

View File

@ -39,6 +39,17 @@ class InvoicesTest extends FeatureTestCase
]);
}
public function testItShouldDuplicateInvoice()
{
$invoice = $this->dispatch(new CreateDocument($this->getRequest()));
$this->loginAs()
->get(route('invoices.duplicate', ['invoice' => $invoice->id]))
->assertStatus(302);
$this->assertFlashLevel('success');
}
public function testItShouldCreateInvoiceWithRecurring()
{
$request = $this->getRequest(true);