From 6d4591c4c2db968c3ff31373929ca5d176cab364 Mon Sep 17 00:00:00 2001 From: Vishwaraj Anand Date: Wed, 9 Nov 2022 11:49:46 +0530 Subject: [PATCH] fix: GqlQuery test for query limit --- .../System/QueryResultPaginationTest.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Datastore/tests/System/QueryResultPaginationTest.php b/Datastore/tests/System/QueryResultPaginationTest.php index e6247680ee73..28026d20993f 100644 --- a/Datastore/tests/System/QueryResultPaginationTest.php +++ b/Datastore/tests/System/QueryResultPaginationTest.php @@ -134,18 +134,18 @@ public function testGqlQueryPaginationByPage(DatastoreClient $client) $this->assertQueryPageCount(self::$expectedTotal, $client, $q); } - // /** - // * @dataProvider clientProvider - // */ - // public function testGqlQueryPaginationWithLimit(DatastoreClient $client) - // { - // $testLimit = 310; - // $q = $client->gqlQuery( - // sprintf('SELECT * FROM `%s` LIMIT %s', self::$testKind, $testLimit), - // ['allowLiterals' => true] - // ); - // $this->assertQueryCount($testLimit, $client, $q); - // } + /** + * @dataProvider clientProvider + */ + public function testGqlQueryPaginationWithLimit(DatastoreClient $client) + { + $testLimit = 310; + $q = $client->gqlQuery( + sprintf('SELECT * FROM `%s` LIMIT %s', self::$testKind, $testLimit), + ['allowLiterals' => true] + ); + $this->assertQueryCount($testLimit, $client, $q); + } /** * @dataProvider clientProvider