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

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

    public function it_should_fail_if_asserting_wrong_queries_count()
    {
        $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']];
        $this->expectException('PHPUnit_Framework_AssertionFailedError');
        $sut = $this->make_instance();
        $sut->assertCountQueries(1);
    }