Skip to content

Commit

Permalink
fix: GqlQuery test for query limit
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwarajanand committed Nov 9, 2022
1 parent 316a08a commit 6d4591c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Datastore/tests/System/QueryResultPaginationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d4591c

Please sign in to comment.