I'm lucky to have had a great job going on seven years, but the decade prior to that I was in an awful place, but this meme speaks to me because I did just that. I had a boss who didn't want to lose me, so he got my interview for an internal move (that would have been a promotion) pulled.
That's a pretty monumentally shitty thing to do, so after that, I did the absolute bare minimum. It was a lot of fun when I put in my two weeks.
The gall of some managers. They're going to lose that person anyway - might as well be on good terms where the potential of working together in the future is still a possibility.
It was one of the few times I've nearly lost it in the office. And the manager who did it was shit at his job, hence why he had to go to such measures to keep people around.