- Issue created by @rp7
- Merge request !10Throw PhpWatchdogException at the end of the tearDown process → (Merged) created by rp7
- Status changed to Needs review
4 months ago 5:41am 4 September 2024 - 🇮🇳India bhanu951
I am not sure if it is related to this issue but Entities are not being deleted when the tests are failed.
Let's say you have created new user, new taxonomy term and new node in a test , the test is failed. Ideally all the data created should be cleaned up but it is not the case, the newly created entities are present in the database.
As a work around we need to clean up the entities in teardown manually.
Applying the patch from this issue still produces the same result.
- 🇦🇺Australia mstrelan
I think this is fine for now but ultimately we should look at implementing a
PHPUnit\Event\Test\FinishedSubscriber
that checks for conditions to fail the test. I believe this allowstearDown
to complete, regardless of if the test failed or not. - 🇺🇸United States moshe weitzman Boston, MA
Good idea. Followup created at https://www.drupal.org/project/dtt/issues/3477088 ✨ Implementing a PHPUnit\Event\Test\FinishedSubscriber that checks for conditions to fail the test Active . This MR is now merged.
Automatically closed - issue fixed for 2 weeks with no activity.