El Salvador 0-2 Spain
Diego Costa made a successful comeback from injury as David Villa scored twice to give Spain victory over El Salvador in their final World Cup warm-up game.
The striker played for 73 minutes and was fouled for an early penalty which Cesc Fabregas missed.
Villa came off the bench to increase his record goal tally for Spain to 58.
The 32-year-old, who announced this week he was leaving Atletico Madrid to join Major League Soccer team New York City, headed in after an hour and then fired home in the sixth minute of injury time.
"We know that Villa, in tight spaces, is one of the best forwards in the world," said coach Vicente Del Bosque.
"The feelings are good and we are optimistic about the start of the competition."
Spain start their World Cup campaign against the Netherlands on 13 June and also face Chile and Australia in Group B.
- 4BarriosSubstituted forBlancoat 87'minutes
- 12Alvarez HernandezSubstituted forAlasat 65'minutes
- 8SantamariaSubstituted forRenderosat 57'minutes
- 6MenjivarSubstituted forAguilaat 83'minutes
- 14Flores MejiaSubstituted forMolinaat 75'minutes
- 1CasillasSubstituted forde Geaat 83'minutes
- 4Javi Martínez
- 14AlonsoSubstituted forBusquetsat 68'minutes
- 10FàbregasSubstituted forVillaat 45'minutes
- 11PedroSubstituted forCazorlaat 45'minutes
- 19Diego CostaSubstituted forXaviat 74'minutes
- 6IniestaSubstituted forSilvaat 45'minutes
- 12de Gea
- Baldomero Toledo
- Shots on Target