An 86th-minute header from centre-back Chris Smalling spared England's blushes as they squeezed past 10-man Portugal 1-0 at Wembley on Thursday in their final Euro 2016 warm-up game.
While Portugal captain Cristiano Ronaldo was rested following his involvement in Real Madrid's Champions League final victory over Atletico Madrid last weekend, England manager Roy Hodgson was effectively able to name a full-strength line-up.
But with his side's Group B opener against Russia in Marseille just nine days away, it took Smalling's first international goal to secure victory after the hosts had toiled badly despite playing against 10 men following the 35th-minute dismissal of Bruno Alves.
Having previously beaten Turkey and Australia, England managed to prevail in all three of their pre-tournament friendlies, but they will travel to France on Monday accompanied by more doubts than certainties.
There was little for Portugal's fans to cheer on a chilly night in west London as their team lost to England for the first time in six games, but coach Fernando Santos will have Ronaldo back in his ranks for their final warm-up match against Estonia in Lisbon on June 8.
England's fans have been clamouring for Wayne Rooney, Harry Kane and Jamie Vardy to be aligned together in attack, but although Hodgson selected the trio in the same team for the first time, Kane and Vardy took up wide positions, with Rooney in the centre.
In attendance was Manchester United manager Jose Mourinho who was keeping a close eye on both Rooney and Smalling.