We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7e8a7 commit 66bc4e2Copy full SHA for 66bc4e2
bigquerydatatransfer/quickstart.php
@@ -42,4 +42,3 @@
42
$bqdtsClient->close();
43
}
44
# [END bigquerydatatransfer_quickstart]
45
-return true;
bigquerydatatransfer/test/quickstartTest.php
@@ -34,10 +34,12 @@ public function testQuickstart()
34
);
35
file_put_contents($file, $contents);
36
37
- // Invoke quickstart.php
38
- $this->result = include $file;
+ // Invoke quickstart.php and capture output
+ ob_start();
39
+ include $file;
40
+ $result = ob_get_clean();
41
// Make sure it looks correct
- $this->assertTrue($this->result);
+ $this->assertContains('ID: youtube_channel', $result);
0 commit comments