public function testBelongsToRead() { $comment1 = Comment::read(1); $comment2 = Comment::read(2); $comment3 = Comment::read(3); $this->assertEquals($comment1->user_id, $comment1->User->id); $this->assertEquals($comment2->user_id, $comment2->User->id); $this->assertEquals($comment3->user_id, $comment3->User->id); $profile1 = Profile::read(1); $profile2 = Profile::read(2); $profile3 = Profile::read(3); $this->assertEquals($profile1->user_id, $profile1->User->id); $this->assertEquals($profile2->user_id, $profile2->User->id); $this->assertEquals($profile3->user_id, $profile3->User->id); }