src/Codeception/Module/WPQueries.php
public function assertQueriesByFunction($function, $message = '')
    {
        $this->readQueries();
        $message = $message ? $message : 'Failed asserting that queries were made by function [' . $function . ']';
        $statementIterator = new FunctionQueriesFilter(new \ArrayIterator($this->filteredQueries), $function);
        Assert::assertNotEmpty(iterator_to_array($statementIterator), $message);
    }
public function assertQueriesByFunction($function, $message = '')
    {
        $this->readQueries();
        $message = $message ? $message : 'Failed asserting that queries were made by function [' . $function . ']';
        $statementIterator = new FunctionQueriesFilter(new \ArrayIterator($this->filteredQueries), $function);
        Assert::assertNotEmpty(iterator_to_array($statementIterator), $message);
    }
public function assertQueriesByFunction ( $ function , $ message = '' ) { $ this -> readQueries ( ) ; $ message = $ message ? $ message : 'Failed asserting that queries were made by function [' . $ function . ']' ; $ statementIterator = new FunctionQueriesFilter ( new \ ArrayIterator ( $ this -> filteredQueries ) , $ function ) ; Assert :: assertNotEmpty ( iterator_to_array ( $ statementIterator ) , $ message ) ; }
Asserts that queries were made by the specified function.

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

@example
```php
acme_clean_queue();
$this->assertQueriesByFunction('acme_clean_queue');
```

@param string $function The fully qualified name of the function to check.
@param string $message An optional message to override the default one.
Asserts that queries were made by the specified function .