WP Queries module out

WPQueries module out.

Baked into WPBrowser

I’ve just pushed version 1.12.0 of wp-browser to GitHub and the main change is the introduction of the WPQueries module.
Anticipated in this post the module aims at satisfying the need, usually arising in WordPress functional tests, to assert and check for database interactions.
In WordPress this should mean going through the wpdb abstraction and leveraging the possibilities offered by the definition of the SAVEQUERIES constant some high level assertions can be made.

For acceptance tests too

The module is not, but, limited to functional tests only (those using the WPLoader module) but also acceptance tests leveraging the WPBootstrapper module.


While the README file tries to cover the bases and some code reading should say much I will post some examples and use cases I came across to pitch the module use.

I appreciate your input