public function testGetUserByCommentId() { $commentTable = new CommentModel(); $map['content'] = 'XXX'; $comment = $commentTable->where($map)->find(); $user = $commentTable->getUserByCommentId($comment['id']); $this->assertTrue($user['phone'] == '444444'); }