I'm trying to run a test but the plugins information are wiped out from the wp_options table since wp-phpunit drops all of the existing tables before test-suite starts.
Question
How do I make the data in wp_options table persist so that my code has access to the installed plugins?
Or is there a way to install plugins before the test-suite starts so the wp_options table is re-populated correctly?
Description
I'm trying to run a test but the plugins information are wiped out from the
wp_options
table since wp-phpunit drops all of the existing tables before test-suite starts.Question
How do I make the data in
wp_options
table persist so that my code has access to the installed plugins? Or is there a way to install plugins before the test-suite starts so thewp_options
table is re-populated correctly?Thanks in advance!