create(); $this->assertTrue($quickFactTemplate->vault()->exists()); } /** @test */ public function it_gets_the_default_label() { $quickFactTemplate = VaultQuickFactsTemplate::factory()->create([ 'label' => null, 'label_translation_key' => 'template.label', ]); $this->assertEquals( 'template.label', $quickFactTemplate->label ); } /** @test */ public function it_gets_the_custom_label_if_defined() { $quickFactTemplate = VaultQuickFactsTemplate::factory()->create([ 'label' => 'this is the real name', 'label_translation_key' => 'template.label', ]); $this->assertEquals( 'this is the real name', $quickFactTemplate->label ); } }