Why is Allah Testing Me?

People say: “Why is Allah testing me? Don’t become depressed to the degree that you begin to question Allah.