Codeception\Module\WPQueries::assertNotQueriesByStatementAndAction PHP Method

assertNotQueriesByStatementAndAction() public method

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