They probably won't be happy if you just use the bathroom and don't order anything. Here some fastfood places near busy subway stations have a combination lock on the door to prevent random people from using the bathroom (the code is in the receipt).
Not even close to the same. There's no expectation to buy something, and in many cities, they either don't have bathrooms or they prohibit non-patrons from using them.