Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tasks/test/tasksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

namespace Google\Cloud\Samples\Tasks\Tests;

use Google\Auth\CredentialsLoader;
use Google\Cloud\TestUtils\TestTrait;
use PHPUnit\Framework\TestCase;

Expand Down Expand Up @@ -52,11 +53,12 @@ public function testCreateHttpTask()

public function testCreateHttpTaskWithToken()
{
$jsonKey = CredentialsLoader::fromEnv();
$output = $this->runSnippet('create_http_task_with_token', [
self::$location,
self::$queue,
'https://example.com/taskhandler',
'[email protected]',
$jsonKey['client_email'],
'Task Details',
]);

Expand Down
3 changes: 3 additions & 0 deletions testing/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"phpunit/phpunit": "^7",
"bshaffer/phpunit-retry-annotations": "^0.1.0",
"guzzlehttp/guzzle": "^6.3"
},
"require": {
"symfony/browser-kit": "^4.0"
}
}