Codeception\Module\WPQueries::assertNotQueriesByStatementAndMethod PHP Method

assertNotQueriesByStatementAndMethod() public method

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