Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit not clearing all tables properly #78

Open
mikeselander opened this issue Jun 19, 2020 · 1 comment
Open

PHPUnit not clearing all tables properly #78

mikeselander opened this issue Jun 19, 2020 · 1 comment
Labels
could have Could be done, or nice to have, low priority for now

Comments

@mikeselander
Copy link

On a current client, we are creating sites as fixtures for some complicated functionality tests, but they are not getting cleared from the database upon test startup. I now have over 20 site tables in the test database and it would be really great if Altis would just clear any and all tables with the tests prefix.

@roborourke
Copy link
Contributor

As discussed on slack the problem is that the WP test framework only loops over the tables that the $wpdb object is aware during the initial bootstrap process. Some code is not included or hooked up during the initial install so this isn't reliable. We should change this to remove all tables with the wptests_ prefix

@rmccue rmccue added the could have Could be done, or nice to have, low priority for now label Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
could have Could be done, or nice to have, low priority for now
Projects
None yet
Development

No branches or pull requests

5 participants