If a Pokemon that uses Wish faints, the next Pokemon can have its HP restored , as long as they don't have full HP.
In this replay, Xatu used Wish and fainted on the same turn. On the next turn, I had Aggron use Substitute to lose some HP. At the end of the turn, Aggron's HP was restored.
Hope this helps.