Codeception\Module\WPQueriesTest::it_should_filter_set_up_and_tear_down_queries_by_default PHP Method

it_should_filter_set_up_and_tear_down_queries_by_default() public method

    public function it_should_filter_set_up_and_tear_down_queries_by_default()
    {
        $this->wpdb->queries = [['first SQL statement', 'some ms timing', 'a stack trace including Codeception\\TestCase\\WPTestCase->setUp'], ['second SQL statement', 'some ms timing', 'a stack trace including Codeception\\TestCase\\WPTestCase->setUp'], ['third SQL statement', 'some ms timing', 'a stack trace calling Acme\\MyPlugin->someMethod'], ['fourth SQL statement', 'some ms timing', 'a stack trace including WP_UnitTest_Factory_For_Thing->create'], ['fifth SQL statement', 'some ms timing', 'a stack trace including WP_UnitTest_Factory_For_Thing->create'], ['sixth SQL statement', 'some ms timing', 'a stack trace calling Acme\\MyPlugin->someMethod'], ['seventh SQL statement', 'some ms timing', 'a stack trace including Codeception\\TestCase\\WPTestCase->tearDown']];
        $sut = $this->make_instance();
        $iterator = $sut->_getFilteredQueriesIterator($this->wpdb);
        $items = [];
        foreach ($iterator as $item) {
            $items[] = $item;
        }
        $this->assertCount(2, $items);
        $this->assertEquals('third SQL statement', $items[0][0]);
        $this->assertEquals('sixth SQL statement', $items[1][0]);
    }