$wpdb
object.
This module requires the WPLoader module to work.
The module will set, if not set already, the SAVEQUERIES
constant to true
and will throw an exception if the contstant is already set to a falsy value.\Codeception\TestCase\WPTestCase
class.\Codeception\TestCase\WPTestCase::queries()
method:int
$n - The expected number of queries.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$action - The action name, e.g. 'init'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$filter - The filter name, e.g. 'posts_where'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$function - The fully qualified name of the function to check.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$class - The fully qualified name of the class to check.string
$method - The name of the method to check.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$action - The action name, e.g. 'init'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$filter - The filter name, e.g. 'posts_where'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$function - The name of the function to check the assertions for.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$class - The fully qualified name of the class to check.string
$method - The name of the method to check.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$action - The action name, e.g. 'init'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$filter - The filter name, e.g. 'posts_where'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$function - The fully qualified name of the function to check.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$class - The fully qualified name of the class to check.string
$method - The name of the method to check.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$action - The action name, e.g. 'init'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$filter - The filter name, e.g. 'posts_where'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$function - The fully qualified function name.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.string
$statement - A simple string the statement should start with or a valid regular expression.string
$class - The fully qualified name of the class to check.string
$method - The name of the method to check.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$action - The action name, e.g. 'init'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$filter - The filter name, e.g. 'posts_where'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$function - The function to check the queries for.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$class - The fully qualified name of the class to check.string
$method - The name of the method to check.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$statement - A simple string the statement should start with or a valid regular expression.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$statement - A simple string the statement should start with or a valid regular expression.string
$action - The action name, e.g. 'init'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$statement - A simple string the statement should start with or a valid regular expression.string
$filter - The filter name, e.g. 'posts_where'.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$statement - A simple string the statement should start with or a valid regular expression.string
$function - The fully-qualified function name.string
$message - An optional message to override the default one.setUp
, tearDown
and factory
methods are excluded by default.int
$n - The expected number of queries.string
$statement - A simple string the statement should start with or a valid regular expression.string
$class - The fully qualified name of the class to check.string
$method - The name of the method to check.string
$message - An optional message to override the default one.\wpdb/null
$wpdb - A specific instance of the wpdb
class or null
to use the global one.null/\wpdb
$wpdb - A specific instance of the wpdb
class or null
to use the global one.