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