The West Australian Premier Mark McGowan will appear in a Sydney court today, giving evidence in his defamation battle with mining magnate Clive Palmer.