src/Codeception/Module/WPQueries.php
public function assertNotQueries($message = '')
    {
        $this->readQueries();
        $message = $message ? $message : 'Failed asserting that no queries were made.';
        Assert::assertEmpty($this->filteredQueries, $message);
    }
public function assertNotQueries($message = '')
    {
        $this->readQueries();
        $message = $message ? $message : 'Failed asserting that no queries were made.';
        Assert::assertEmpty($this->filteredQueries, $message);
    }
public function assertNotQueries ( $ message = '' ) { $ this -> readQueries ( ) ; $ message = $ message ? $ message : 'Failed asserting that no queries were made.' ; Assert :: assertEmpty ( $ this -> filteredQueries , $ message ) ; }
Asserts that no queries were made.

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

@example
```php
$posts = $this->factory()->post->create_many(3);
wp_cache_set('page-posts', $posts, 'acme');
$pagePosts = $plugin->getPagePosts();
$I->assertNotQueries('Queries should not be made if the cache is set.')
```

@param string $message An optional message to override the default one.
Asserts that no queries were made .