Barnet will go take on Championship-bound Brentford as part of their pre-season preparations.
The Bees will host the Bees at The Hive on July 22 - replacing their original away fixture at Maidenhead.
Mark Warburton's side were promoted to the Championship as League One runners-up - 12 months after losing out in the play-off final to Yeovil Town.
A new date for the Maidenhead tie will be released in due course.
Full Barnet pre-season schedule:
Saturday, 12 July: Barnet vs Peterborough United (3pm)
Tuesday, 15 July: Barnet vs Stevenage (7.45pm)
Tuesday, 22 July: Barnet vs Brentford (7.45pm)
Tuesday, 29 July: Margate vs Barnet (7.45pm)
Saturday, 2 August: Barnet vs Wycombe Wanderers (3pm)