Cal. Fam. Code § 7559
Payment of the cost of initial genetic testing shall be made in advance when agreed to by the parties or ordered by the court pursuant to Section 7640.