style updates
This commit is contained in:
@@ -46,7 +46,7 @@ class InternalApiCoverageTest extends TestCase
|
||||
{
|
||||
config(['platform.internal_api_key' => 'testing-secret']);
|
||||
$timestamp = now()->subMinutes(10)->toIso8601String();
|
||||
$signature = hash_hmac('sha256', $timestamp.'.', 'testing-secret');
|
||||
$signature = hash_hmac('sha256', $timestamp . '.', 'testing-secret');
|
||||
|
||||
$this->withHeaders([
|
||||
'X-WMS-Timestamp' => $timestamp,
|
||||
@@ -64,7 +64,7 @@ class InternalApiCoverageTest extends TestCase
|
||||
|
||||
$this->withHeaders([
|
||||
'X-WMS-Timestamp' => $timestamp,
|
||||
'X-WMS-Signature' => hash_hmac('sha256', $timestamp.'.', 'wrong-secret'),
|
||||
'X-WMS-Signature' => hash_hmac('sha256', $timestamp . '.', 'wrong-secret'),
|
||||
])->getJson('/api/internal/companies')->assertUnauthorized();
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ class InternalApiCoverageTest extends TestCase
|
||||
Warehouse::create(['company_id' => $company->id, 'code' => 'SUM', 'name' => 'Summary Warehouse']);
|
||||
|
||||
$timestamp = now()->toIso8601String();
|
||||
$signature = hash_hmac('sha256', $timestamp.'.', 'testing-secret');
|
||||
$signature = hash_hmac('sha256', $timestamp . '.', 'testing-secret');
|
||||
|
||||
$this->withHeaders([
|
||||
'X-WMS-Timestamp' => $timestamp,
|
||||
|
||||
Reference in New Issue
Block a user