Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Nov 1, 2023
1 parent 015747d commit 11dd41b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/TestCase/FactoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ protected function login(string $userId = '00000000-0000-0000-0000-000000000001'

protected function usePotalToken(): void
{
$headers = $this->_request['headers'] ?? [];
$headers['Authorization'] = env('POTAL_TOKEN');

$this->configRequest(['headers' => $headers]);
$this->configRequest([
'headers' => [
'Authorization' => env('POTAL_TOKEN'),
],
]);
}

public function mockSlackClientGetUser(string $userId): void
Expand Down

0 comments on commit 11dd41b

Please sign in to comment.