What is the meaning of [singing a different tune]

You may say you’re in love with your boyfriend, but you’ll be singing a different tune (change your opinion) when you find out what he’s been up to.