chore: code styling via pint
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Tests\Feature\Controllers;
|
||||
|
||||
use App\Http\Controllers\WebhookController;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
@@ -263,7 +262,6 @@ class WebhookControllerTest extends TestCase
|
||||
'email' => 'test@example.com',
|
||||
];
|
||||
|
||||
|
||||
$response = $this->postJson('/webhook/oxapay', $invalidData);
|
||||
|
||||
$response->assertStatus(400);
|
||||
@@ -284,7 +282,6 @@ class WebhookControllerTest extends TestCase
|
||||
$validHmac = hash_hmac('sha512', $postData, $apiSecretKey);
|
||||
$invalidHmac = 'invalid_hmac';
|
||||
|
||||
|
||||
$response = $this->postJson('/webhook/oxapay', $validData, [
|
||||
'HMAC' => $invalidHmac,
|
||||
]);
|
||||
@@ -349,7 +346,6 @@ class WebhookControllerTest extends TestCase
|
||||
$invoicePostData = json_encode($invoiceData);
|
||||
$invoiceHmac = hash_hmac('sha512', $invoicePostData, 'test_merchant_key');
|
||||
|
||||
|
||||
$response = $this->postJson('/webhook/oxapay', $invoiceData, [
|
||||
'HMAC' => $invoiceHmac,
|
||||
]);
|
||||
@@ -387,4 +383,4 @@ class WebhookControllerTest extends TestCase
|
||||
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user