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

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

    public function it_should_return_false_if_asserting_queries_and_there_were_no_queries()
    {
        $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'], ['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'], ['seventh SQL statement', 'some ms timing', 'a stack trace including Codeception\\TestCase\\WPTestCase->tearDown']];
        $this->expectException('PHPUnit_Framework_AssertionFailedError');
        $sut = $this->make_instance();
        $sut->assertQueries();
    }