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

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

@example
```php
add_action( 'edit_post', function($postId){
$count = get_option('acme_title_updates_count');
update_option('acme_title_updates_count', ++$count);
} );
wp_delete_post($bookId);
$this->assertNotQueriesByStatementAndAction('DELETE', 'delete_post');
```

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