src/Codeception/Module/WPQueries.php
public function assertNotQueriesByStatementAndFunction($statement, $function, $message = '')
    {
        $message = $message ?: 'Failed asserting that no queries were made by function ['
                               . $function . '] containing statement [' . $statement . ']';
        $this->assertQueriesCountByStatementAndFunction(0, $statement, $function, $message);
    }
public function assertNotQueriesByStatementAndFunction($statement, $function, $message = '')
    {
        $message = $message ?: 'Failed asserting that no queries were made by function ['
                               . $function . '] containing statement [' . $statement . ']';
        $this->assertQueriesCountByStatementAndFunction(0, $statement, $function, $message);
    }
public function assertNotQueriesByStatementAndFunction ( $ statement , $ function , $ message = '' ) { $ message = $ message ? : 'Failed asserting that no queries were made by function [' . $ function . '] containing statement [' . $ statement . ']' ; $ this -> assertQueriesCountByStatementAndFunction ( 0 , $ statement , $ function , $ message ) ; }
Asserts that no queries were made by the specified function starting with the specified SQL statement.

Queries generated by `setUp`, `tearDown` and `factory` methods are excluded by default.

@example
```php
wp_insert_post(['ID' => $bookId, 'post_title' => 'The Call of the Wild']);
$this->assertNotQueriesByStatementAndFunction('INSERT', 'wp_insert_post');
$this->assertQueriesByStatementAndFunction('UPDATE', 'wp_insert_post');
```

@param string $statement A simple string the statement should start with or a valid regular expression.
Regular expressions must contain delimiters.
@param string $function The name of the function to check the assertions for.
@param string $message An optional message to override the default one.
Asserts that no queries were made by the specified function starting with the specified SQL statement .