Codeception\Module\WPQueries::assertNotQueriesByStatementAndFunction PHP Method

assertNotQueriesByStatementAndFunction() public method

Queries generated by setUp, tearDown and factory methods are excluded by default.
public assertNotQueriesByStatementAndFunction ( string $statement, string $function, string $message = '' )
$statement string A simple string the statement should start with or a valid regular expression. Regular expressions must contain delimiters.
$function string
$message string An optional message to override the default one.
    public function assertNotQueriesByStatementAndFunction($statement, $function, $message = '')
    {
        $message = $message ? $message : 'Failed asserting that no queries were made by function [' . $function . '] containing statement [' . $statement . ']';
        $this->assertQueriesCountByStatementAndFunction(0, $statement, $function, $message);
    }