Fix tests

This commit is contained in:
Jake Barnby
2025-07-21 19:59:38 +12:00
parent f082cfacfa
commit 891db255bc
@@ -782,7 +782,7 @@ class AccountCustomClientTest extends Scope
$tokens = $this->extractQueryParamsFromEmailLink($lastEmail['html']);
$verification = $tokens['secret'];
$expectedExpire = DateTime::formatTz(new \DateTime($response['body']['expire']));
$expectedExpire = DateTime::formatTz($response['body']['expire']);
$this->assertEquals($expectedExpire, $tokens['expire']);
// Secret check
@@ -1099,7 +1099,7 @@ class AccountCustomClientTest extends Scope
$this->assertArrayHasKey('expire', $tokens);
$this->assertNotEmpty($tokens['expire']);
$this->assertEquals(
DateTime::formatTz(new \DateTime($response['body']['expire'])),
DateTime::formatTz($response['body']['expire']),
$tokens['expire']
);