makeTestData(); } public function testInvoiceUploadWorks() { CreateInvoicePdf::dispatchNow($this->invoice->invitations->first()); $this->assertNotNull($this->invoice->service()->getInvoicePdf($this->invoice->client->primary_contact()->first())); } }