Don’t take theology advice from wiki or the Jack Black’s of the world.
Wikipedia itself says nothing about Joseph knowing about the Resurrection in advance. It quotes from two non-canonical-sources; in particular one of which even Wikipedia lists as Medieval in origin, not first century. Typical lefty troll.