File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1717
1818namespace Google \Cloud \Samples \Tasks \Tests ;
1919
20+ use Google \Auth \CredentialsLoader ;
2021use Google \Cloud \TestUtils \TestTrait ;
2122use PHPUnit \Framework \TestCase ;
2223
@@ -52,11 +53,12 @@ public function testCreateHttpTask()
5253
5354 public function testCreateHttpTaskWithToken ()
5455 {
56+ $ jsonKey = CredentialsLoader::fromEnv ();
5557 $ output = $ this ->runSnippet ('create_http_task_with_token ' , [
5658 self ::$ location ,
5759 self ::$ queue ,
5860 'https://example.com/taskhandler ' ,
59- 61+ $ jsonKey [ ' client_email ' ] ,
6062 'Task Details ' ,
6163 ]);
6264
Original file line number Diff line number Diff line change 44 "phpunit/phpunit" : " ^7" ,
55 "bshaffer/phpunit-retry-annotations" : " ^0.1.0" ,
66 "guzzlehttp/guzzle" : " ^6.3"
7+ },
8+ "require" : {
9+ "symfony/browser-kit" : " ^4.0"
710 }
811}
You can’t perform that action at this time.
0 commit comments