Do they automatically become one? Get an event to make a choice? How does the game solve the issue of having two countries with the same leader?
France gets the option to annex them with a focus, but it does not matter because you do not get cores and have to occupy entire of Spain, you don't even get their fleet!
I attacked France with Alfonso as Spanish Alfonso under Nationalist Spain (not carlists)