Skip to content

Commit 4447ca7

Browse files
fix (bigquery): add order into test query (#1716)
1 parent fa4a1e2 commit 4447ca7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bigquery/api/test/bigqueryTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,10 @@ public function testStreamRow()
266266
public function testRunQuery()
267267
{
268268
$query = 'SELECT corpus, COUNT(*) as unique_words
269-
FROM `publicdata.samples.shakespeare` GROUP BY corpus LIMIT 10';
269+
FROM `publicdata.samples.shakespeare`
270+
GROUP BY corpus
271+
ORDER BY unique_words DESC
272+
LIMIT 10';
270273

271274
$output = $this->runSnippet('run_query', [$query]);
272275
$this->assertStringContainsString('hamlet', $output);

0 commit comments

Comments
 (0)