wp-phpunit / issues

Central issues repository for wp-phpunit
0 stars 0 forks source link

[Question] How to make wp_options table persist? #15

Closed batbattur closed 1 year ago

batbattur commented 1 year ago

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 the wp_options table is re-populated correctly?

Thanks in advance!