src/Codeception/Module/WPQueries.php
public function assertNotQueriesByStatementAndFilter($statement, $filter, $message = '')
    {
        $message = $message ?: 'Failed asserting that no queries were triggered by filter  ['
                               . $filter . '] containing statement [' . $statement . ']';
        $this->assertQueriesCountByStatementAndFilter(0, $statement, $filter, $message);
    }
public function assertNotQueriesByStatementAndFilter($statement, $filter, $message = '')
    {
        $message = $message ?: 'Failed asserting that no queries were triggered by filter  ['
                               . $filter . '] containing statement [' . $statement . ']';
        $this->assertQueriesCountByStatementAndFilter(0, $statement, $filter, $message);
    }
public function assertNotQueriesByStatementAndFilter ( $ statement , $ filter , $ message = '' ) { $ message = $ message ? : 'Failed asserting that no queries were triggered by filter  [' . $ filter . '] containing statement [' . $ statement . ']' ; $ this -> assertQueriesCountByStatementAndFilter ( 0 , $ statement , $ filter , $ message ) ; }
Asserts that no queries were made as a consequence of the specified filter containing the specified SQL query.

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

@example
```php
add_filter('the_title', function($title, $postId){
$post = get_post($postId);
if($post->post_type !== 'book'){
return $title;
}
$new = get_option('acme_new_prefix');
return "{$new} - " . $title;
});
$title = apply_filters('the_title', get_post($notABookId)->post_title, $notABookId);
$this->assertNotQueriesByStatementAndFilter('SELECT', 'the_title');
```

@param string $statement A simple string the statement should start with or a valid regular expression.
Regular expressions must contain delimiters.
@param string $filter The filter name, e.g. 'posts_where'.
@param string $message An optional message to override the default one.
Asserts that no queries were made as a consequence of the specified filter containing the specified SQL query .