create(); $this->assertTrue($template->account()->exists()); } /** @test */ public function it_has_many_template_pages() { $template = Template::factory()->create(); $page = TemplatePage::factory()->create([ 'template_id' => $template->id, ]); $this->assertTrue($template->pages()->exists()); } /** @test */ public function it_has_many_contacts() { $template = Template::factory()->create(); $contact = Contact::factory()->create([ 'template_id' => $template->id, ]); $this->assertTrue($template->contacts()->exists()); } }