Skip to content

Commit

Permalink
export table as json instead of csv (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsupplee authored and jdpedrie committed Mar 3, 2017
1 parent 0c15f7e commit 1b5e7bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/system/BigQuery/ManageTablesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ public function testExportsTable()
uniqid(self::TESTING_PREFIX)
);
self::$deletionQueue[] = $object;
$job = self::$table->export($object);
$job = self::$table->export($object, [
'jobConfig' => [
'destinationFormat' => 'NEWLINE_DELIMITED_JSON'
]
]);

$backoff = new ExponentialBackoff(8);
$backoff->execute(function () use ($job) {
Expand All @@ -111,6 +115,7 @@ public function testExportsTable()
if (!$job->isComplete()) {
$this->fail('Job failed to complete within the allotted time.');
}

$this->assertArrayNotHasKey('errorResult', $job->info()['status']);
}

Expand Down

0 comments on commit 1b5e7bc

Please sign in to comment.