Donald Trump will testify in court over Trump University class-action lawsuit.