Testing Plugin – Install plugin dependencies in enviroment

Question

i have a problem with a unittest, mi plugin depends of the timber plugin for render twig template.

But a i have a problem when i need run the unittest with wordpress testing enviroment, i cant install adiccionals plugins, i think that mayby i can moked the calls to plugin (i dont found info of this) or mayby if i can install in the enviroments.

Has anyone had a similar problem and found a solution?

Soon I feel that I will find similar problems when verifying things about the template, but perhaps we are talking about tests more related to integration, do you know if wordpress proposes some mechanism for integration tests or does it have to be done by hand?

0
Lautaro Linquiman 2 weeks 2023-03-12T08:48:29-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse