Every job I've had has paid accrued PTO/Vacation when being let go or even leaving on your own will.
In practice this just means that you can take two weeks and still get paid. You can forgo your vacation in some instances, but you still get paid out the vacation money. I used to do that when I worked part-time in college and was short of cash for whatever reason.
Ontario's rules - https://www.ontario.ca/document/your-guide-employment-standa...
That screwed me when I changed jobs last year actually and I lost 3 days of pay that I didn't take.