mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Changed default mercure token duration to 1 day
This commit is contained in:
@@ -92,7 +92,7 @@ class MercureInfoActionTest extends TestCase
|
||||
$this->assertArrayHasKey('token', $payload);
|
||||
$this->assertArrayHasKey('jwtExpiration', $payload);
|
||||
$this->assertEquals(
|
||||
Chronos::now()->addDays($days ?? 3)->startOfDay(),
|
||||
Chronos::now()->addDays($days ?? 1)->startOfDay(),
|
||||
Chronos::parse($payload['jwtExpiration'])->startOfDay(),
|
||||
);
|
||||
$buildToken->shouldHaveBeenCalledOnce();
|
||||
|
||||
Reference in New Issue
Block a user