Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CedNet's avatar

Events not firing with PHPUnit functional tests

Hey, I have a booking system and created a simplistic testBooking class with 3-4 methods that each test different scenarios. If I run them separetly in PHPStorm, each method with a created $booking class I can $booking->delete(). But when I run the whole testBooking class at once No $booking->delete()'s are fired...Nor is the event listeners I have for registered.

Is this a known issue? I've googled some of it and found there are issues, but that a model can't even ->delete()'ed?

Anyone?

0 likes
0 replies

Please or to participate in this conversation.