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

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

@example
```php
Acme\BookRepository::new(['title' => 'Alice in Wonderland'])->commit();
$this->assertQueriesByStatementAndMethod('INSERT', Acme\BookRepository::class, 'commit');
```

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