makeTestData(); } public function testInitOfClass() { $invitation = $this->invoice->invitations->first(); $service = new PdfService($invitation); $this->assertInstanceOf(PdfService::class, $service); } public function testEntityResolution() { $invitation = $this->invoice->invitations->first(); $service = new PdfService($invitation); $this->assertInstanceOf(PdfConfiguration::class, $service->config); } public function testDefaultDesign() { $invitation = $this->invoice->invitations->first(); $service = new PdfService($invitation); $this->assertEquals(2, $service->config->design->id); } public function testHtmlIsArray() { $invitation = $this->invoice->invitations->first(); $service = new PdfService($invitation); $this->assertIsArray($service->html_variables); } public function testTemplateResolution() { $invitation = $this->invoice->invitations->first(); $service = new PdfService($invitation); $this->assertIsString($service->designer->template); } }