A testimony is spiritual knowledge of truth that comes from the Holy Ghost.
To get a testimony …
Ask, seek, and knock
With a sincere heart,
With real intent,
With faith in the Savior.
Important parts of a testimony are …
Knowing that Heavenly Father loves us.
Knowing that Jesus Christ is our Savior.
Knowing that the gospel has been restored.