Skip to content

Commit

Permalink
Fix curl hook test
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Oct 3, 2024
1 parent 3a3f1cb commit 112850b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/SPC/store/CurlHookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function testSetupGithubToken()
} else {
$this->assertEquals(['Authorization: Bearer ' . getenv('GITHUB_TOKEN')], $header);
}
$header = [];
putenv('GITHUB_TOKEN=token');
CurlHook::setupGithubToken('GET', 'https://example.com', $header);
$this->assertEquals(['Authorization: Bearer token'], $header);
Expand Down

0 comments on commit 112850b

Please sign in to comment.