create(); $this->assertTrue($note->contact()->exists()); } /** @test */ public function it_has_one_author() { $note = Note::factory()->create(); $this->assertTrue($note->author()->exists()); } /** @test */ public function it_has_one_emotion() { $emotion = Emotion::factory()->create(); $note = Note::factory()->create([ 'emotion_id' => $emotion->id, ]); $this->assertTrue($note->emotion()->exists()); } }