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 17
17
18
18
namespace Google \Cloud \Samples \Tasks \Tests ;
19
19
20
+ use Google \Auth \CredentialsLoader ;
20
21
use Google \Cloud \TestUtils \TestTrait ;
21
22
use PHPUnit \Framework \TestCase ;
22
23
@@ -52,11 +53,12 @@ public function testCreateHttpTask()
52
53
53
54
public function testCreateHttpTaskWithToken ()
54
55
{
56
+ $ jsonKey = CredentialsLoader::fromEnv ();
55
57
$ output = $ this ->runSnippet ('create_http_task_with_token ' , [
56
58
self ::$ location ,
57
59
self ::$ queue ,
58
60
'https://example.com/taskhandler ' ,
59
-
61
+ $ jsonKey [ ' client_email ' ] ,
60
62
'Task Details ' ,
61
63
]);
62
64
Original file line number Diff line number Diff line change 4
4
"phpunit/phpunit" : " ^7" ,
5
5
"bshaffer/phpunit-retry-annotations" : " ^0.1.0" ,
6
6
"guzzlehttp/guzzle" : " ^6.3"
7
+ },
8
+ "require" : {
9
+ "symfony/browser-kit" : " ^4.0"
7
10
}
8
11
}
You can’t perform that action at this time.
0 commit comments