Skip to content

Commit 4d73cd0

Browse files
authored
fix: flex and task tests (GoogleCloudPlatform#1155)
1 parent 55fa76c commit 4d73cd0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tasks/test/tasksTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
namespace Google\Cloud\Samples\Tasks\Tests;
1919

20+
use Google\Auth\CredentialsLoader;
2021
use Google\Cloud\TestUtils\TestTrait;
2122
use 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

testing/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
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
}

0 commit comments

Comments
 (0)