Rafael Nadal had to take a surprise drug test after a French television programme poked fun at Spain's apparent ties with doping.
The Spanish sports ministry has contacted its French counterpart to complain about the satirical skits on Canal Plus.
It is considering legal action after Spain's tennis and cycling federations said they would sue the channel for using its logos in a video that poked fun at Nadal.
Nadal wrote on his Twitter account: "8:30 in the morning!!! Just finished passing a surprise antidoping test...it was expected after everything...but I'm happy it's like this!"
Former Tour de France champion Alberto Contador was recently banned for two years.