update
This commit is contained in:
@@ -41,15 +41,6 @@ class RenewServiceTest extends TestCase
|
||||
}
|
||||
|
||||
/** Encrypts the shared secret the same way ClientAccessTokenCheck expects, for test requests. */
|
||||
private function buildClientAccessToken(): string
|
||||
{
|
||||
$key = hex2bin((string) config('services.client_api.key'));
|
||||
$secret = (string) config('services.client_api.secret');
|
||||
$iv = random_bytes(16);
|
||||
$ciphertext = openssl_encrypt($secret, 'aes-256-cbc', $key, OPENSSL_RAW_DATA, $iv);
|
||||
|
||||
return base64_encode($iv . $ciphertext);
|
||||
}
|
||||
|
||||
private function createServiceWithOldPrice(int $oldPrice): Service
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user