src/Codeception/Module/WPQueries.php
public function assertQueries($message = '')
    {
        $this->readQueries();
        $message = $message ? $message : 'Failed asserting that queries were made.';
        Assert::assertNotEmpty($this->filteredQueries, $message);
    }
public function assertQueries($message = '')
    {
        $this->readQueries();
        $message = $message ? $message : 'Failed asserting that queries were made.';
        Assert::assertNotEmpty($this->filteredQueries, $message);
    }
public function assertQueries ( $ message = '' ) { $ this -> readQueries ( ) ; $ message = $ message ? $ message : 'Failed asserting that queries were made.' ; Assert :: assertNotEmpty ( $ this -> filteredQueries , $ message ) ; }
Asserts that at least one query was made during the test.

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

@example
```php
wp_cache_delete('page-posts', 'acme');
$pagePosts = $plugin->getPagePosts();
$I->assertQueries('Queries should be made to set the cache.')
```

@param string $message An optional message to override the default one.
Asserts that at least one query was made during the test .