Codeception\Module\WPQueriesTest::it_should_allow_counting_the_queries PHP Метод

it_should_allow_counting_the_queries() публичный Метод

    public function it_should_allow_counting_the_queries()
    {
        $this->wpdb->queries = [['SQL statement', 'some ms timing', 'a stack trace including Codeception\\TestCase\\WPTestCase->setUp'], ['SQL statement', 'some ms timing', 'a stack trace including Acme\\MyPlugin->someMethod'], ['SQL statement', 'some ms timing', 'a stack trace including Acme\\MyPlugin->someMethod'], ['SQL statement', 'some ms timing', 'a stack trace including Codeception\\TestCase\\WPTestCase->tearDown']];
        $sut = $this->make_instance();
        $sut->assertCountQueries(2);
    }